随笔分类 -  jQuery源码分析

摘要:回顾有了之前的几篇对于jQuery.attributes相关的研究,是时候分析jQuery.attr的源码了Javascript中的attribute和property分析attribute和property兼容性分析jQuery.access源码分析结构jQuery.fn.extend({ ... 阅读全文
posted @ 2014-08-11 17:58 LonelyClick 阅读(1006) 评论(1) 推荐(2)
摘要:基本理解jQuery.attr是jQuery.attr,jQuery.prop,jQuery.css提供底层支持,jQuery里一个比较有特色的地方就是函数的重载, 比如attr,有如下几种重载$('#box').attr('title')$('#box').attr('title','标题')$(... 阅读全文
posted @ 2014-08-11 16:49 LonelyClick 阅读(2387) 评论(2) 推荐(3)