标签:max checked tle index ado cte 区别 type 简单
1.Layers,(工具名称).
2.prop 与 attr的区别.
关于它们两个的区别,网上的答案很多。这里谈谈我的心得,我的心得很简单:
以下是官方建议attr(),prop()的使用:
| Attribute/Property | .attr() | .prop() |
|---|---|---|
| accesskey | √ | |
| align | √ | |
| async | √ | √ |
| autofocus | √ | √ |
| checked | √ | √ |
| class | √ | |
| contenteditable | √ | |
| draggable | √ | |
| href | √ | |
| id | √ | |
| label | √ | |
| location ( i.e. window.location ) | √ | √ |
| multiple | √ | √ |
| readOnly | √ | √ |
| rel | √ | |
| selected | √ | √ |
| src | √ | |
| tabindex | √ | |
| title | √ | |
| type | √ | |
width ( if needed over .width() ) |
√ |
3.jQuery each() 方法规定为每个匹配元素规定运行的函数。
$("input").each(function(index,el){
$(el).prop("maxlength","200")
})
标签:max checked tle index ado cte 区别 type 简单
原文地址:http://www.cnblogs.com/tongbiao/p/7771790.html