-
jQuery通過傳遞參數(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):查看全部
-
學習安排三查看全部
-
學習安排一查看全部
-
學習流程查看全部
-
each 回調(diào)函數(shù)返回 true,false 可以中斷循環(huán)查看全部
-
target = this; 對于 ajQuey.extend 來說就是 ajQuery 對于 ajQuery.fn.extend 來說就是 ajQuery.fn查看全部
-
//這樣寫比較好理解 //兩種調(diào)用方式,都確保返回的是對象 //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() 通過更改this指向到$.each()這個函數(shù) each: function(callback, args) { return jQuery.each(this, callback, args); }查看全部
-
通過回調(diào)更改this的指向查看全部
-
end 指向這個堆棧 addBack 添加當前元素到堆棧合并查看全部
-
jQuery.extend 是擴展了jQuery;jQuery.fn.extend 是擴展了fn,也就是jQuery.prototype原型對象查看全部
舉報
0/150
提交
取消