您现在的位置是:首页 > 电脑技术查询 > web开发

name 与id的区别解决方案

编辑:chaxungu时间:2022-10-02 23:17:23分类:web开发

name 与id的区别
<input class= "Wdate " type= "text " onfocus= "new WdatePicker(this) " name=text1 id =text1/>
id 与name 的区别是什么?



------解决方案--------------------
旧标准用 name,新标准用 id,

要兼容新旧标准就两个一起用,填一样滴值就行了!