2014年11月24日

jQuery attr() 源码解读

摘要: 我们知道,$().attr()实质上是内部调用了jQuery.access方法,在调用时jQuery.attr作为回调传入。在通过种种判断(参看jQuery.access()方法)之后,取值和赋值最后调用了这个jQuery.attr方法。所以,关键是看jQuery.attr这里怎么走了~~源码如下:... 阅读全文

posted @ 2014-11-24 23:17 叫我钱了个浅 阅读(692) 评论(0) 推荐(0) 编辑

导航