摘要:
.attr()获取匹配的元素集合中的第一个元素的属性的值 或 设置每一个匹配元素的一个或多个属性。Contents:.attr( attributeName ).attr( attributeName ).attr( attributeName, value ).attr( attributeName, value ).attr( attributes ).attr( attributeName, function(index, attr) ).attr()方法只获取第一个匹配元素的属性值。要获取每个单独的元素的属性值, 我们需要依靠jQuery的.each()或者.map()方法循环。使用 阅读全文
posted @ 2013-12-12 11:29
PiLee
阅读(349)
评论(0)
推荐(0)

浙公网安备 33010602011771号