读jQuery之十七(attribute/property/class)
摘要:
jQuery的属性模块提供了如下方法attr/removeAttrprop/removeProp(1.6)addClass/removeClass/toggleClass/hasClassval提供了几个静态方法以支持JQ对象以上方法,如jQuery.attr 对应 attr,即jq对象的attr方法内部调用了jQuery.attr。其次还有jQuery.removeAttr -> removeAttrjQuery.prop -> prop看代码可发现attr和prop方法中都直接调用的是jQuery.accessattr: function( name, value ) { re 阅读全文
posted @ 2011-09-03 08:56
snandy
阅读(5328)
评论(1)
推荐(0)
浙公网安备 33010602011771号