-
jQuery通過(guò)傳遞參數(shù)的不同,實(shí)現(xiàn)了9種方法的重載: 1. jQuery([selector,[context]]) 2. jQuery(element) 3. jQuery(elementArray) 4. jQuery(object) 5. jQuery(jQuery object) 6. jQuery(html,[ownerDocument]) 7. jQuery(html,[attributes]) 8. jQuery() 9. jQuery(callback)查看全部
-
(function () {})(): ()操作符的返回值是里邊的函數(shù)。查看全部
-
看不懂撒查看全部
-
最新jQuery2.1.1版本的結(jié)構(gòu):查看全部
-
學(xué)習(xí)安排三查看全部
-
學(xué)習(xí)安排一查看全部
-
學(xué)習(xí)流程查看全部
-
each 回調(diào)函數(shù)返回 true,false 可以中斷循環(huán)查看全部
-
target = this; 對(duì)于 ajQuey.extend 來(lái)說(shuō)就是 ajQuery 對(duì)于 ajQuery.fn.extend 來(lái)說(shuō)就是 ajQuery.fn查看全部
-
//這樣寫(xiě)比較好理解 //兩種調(diào)用方式,都確保返回的是對(duì)象 //new aQuery('#book') //aQuery('#book') var aQuery = function(selector) { if (this instanceof aQuery) { var elem = document.getElementById(/[^#].*/.exec(selector)[0]); this.length = 1; this[0] = elem; this.context = document; this.selector = selector; this.get = function(num) { return this[num]; } return this; }else{ return new aQuery(selector); } }查看全部
-
關(guān)于 this 指針的用法 http://blog.csdn.net/motian06/article/details/8258942查看全部
-
$(selector).each() 通過(guò)更改this指向到$.each()這個(gè)函數(shù) each: function(callback, args) { return jQuery.each(this, callback, args); }查看全部
-
通過(guò)回調(diào)更改this的指向查看全部
-
end 指向這個(gè)堆棧 addBack 添加當(dāng)前元素到堆棧合并查看全部
-
jQuery.extend 是擴(kuò)展了jQuery;jQuery.fn.extend 是擴(kuò)展了fn,也就是jQuery.prototype原型對(duì)象查看全部
舉報(bào)
0/150
提交
取消