美文网首页
2018-03-09

2018-03-09

作者: 见吾 | 来源:发表于2018-03-15 13:42 被阅读0次

hash{}如何取值?hash套hash如何取值?

name用于定义这个input收到的值的变量名,例如type="text", name="txt"的input输入“hello",那么就有txt="hello";用于dom操作取值

value就是该input的值,也是显示出来的东西,例如type="button" value="btn"的input,按钮上的文字就btn;

input 必要的属性时type,其他都不是必须的。

相关文章

网友评论

      本文标题:2018-03-09

      本文链接:https://www.haomeiwen.com/subject/calmfftx.html