jQuery源码学习笔记五
摘要:
在正式深入jQuery的核心功能选择器之前,还有一些方法,基本都是数组方法,用于遴选更具体的需求,如获得某个元素的所有祖选元素啦,等等。接着是其缓存机制data。//@author 司徒正美|なさみ|cheng http://www.cnblogs.com/rubylouvre/ All rights reserved //去除两边的空白 trim: function( text ) { return (text || "").replace( /^\s+|\s+$/g, "" ); }, //转换成数组,很大众的方法 mak... 阅读全文
posted @ 2009-11-21 20:01 司徒正美 阅读(4175) 评论(7) 推荐(1)
浙公网安备 33010602011771号