jquery1.6.2(api+源码)

要得到的属性的名称.prop()方法只获得第一个匹配元素的属性值。元素的一个属性没有设置,或者如果没有匹配的元素。它返回undefined值。为了让每个元素单独的值,使用一个循环结构的如jQuery .each()或.map()方法。 attributes和properties之间的差异在特定情况下是很重要。jQuery 1.6之前,.attr()方法有时检索时考虑到了一些属性的属性值,这可能导致不一致的行为。在jQuery 1.6, .prop()方法提供了一种明确检索属性值,同时.attr()检索的属性而已。例如,考虑一个DOM元素的HTML标记中定义的 ,并假设它是一个JavaScript变量命名的elem : elem.checked true (Boolean) $(elem).prop("checked") true (Boolean) elem.getAttribute("checked") "checked" (String) $(elem).attr("checked")(1.6+) "checked" (String) $(elem).attr("checked")(pre-1.6) true (Boolean)
2(api+源码)
jquery1.6.2(api+源码) 预估大小:340个文件
file
main.min.css 10KB
file
jquery.css 6KB
file
style.css 14KB
file
index.html 11KB
file
index.html 15KB
file
index.html 11KB
file
index.html 9KB
file
index.html 36KB
file
index.html 11KB
file
index.html 10KB
file
index.html 10KB
file
index.html 10KB
file
index.html 14KB
file
index.html 16KB
file
index.html 10KB
file
index.html 11KB
file
index.html 9KB
file
loader.gif 6KB
file
hat.gif 1KB
file
index.html 171KB
rar 文件大小:1.9MB