随笔分类 -  jQuery

摘要:The difference between .bind(), .live(), and .delegate() is not always apparent. Having a clear understanding of all the differences, though, will help us write more concise code and prevent bugs from popping up in our interactive applications.The jQuery team have announced in v1.7 a new method for 阅读全文
posted @ 2012-06-17 23:58 iEden 阅读(322) 评论(0) 推荐(0)
摘要:很多时候,对于一些使用原生javascript的网页,我们需要研究里面的一些功能,或者干些坏事,最需要的就是jQuery,如何在一个仅支持原生JavaScript的网页里,手工加载jQuery呢?//Include jQueryvar body = document.getElementsByTagName('body')[0];var s = document.createElement('script');s.setAttribute('type', 'text/javascript');s.setAttribute(' 阅读全文
posted @ 2012-06-09 01:29 iEden 阅读(724) 评论(0) 推荐(0)
摘要:JavaScript: (function () { $.extend($.fn, { mask: function (msg, maskDivClass) { this.unmask(); var op = { opacity: 0.8, z: 10000, bgcolor: '#ccc' ... 阅读全文
posted @ 2012-04-04 14:44 iEden 阅读(1891) 评论(0) 推荐(1)