expando值,如jqueryExpando00001;
uuid值,如1;
cache塊,cache[uuid]=緩存內(nèi)容;
dom關(guān)聯(lián)expando和uuid,即dom[expando]=uuid
是這樣理解吧
uuid值,如1;
cache塊,cache[uuid]=緩存內(nèi)容;
dom關(guān)聯(lián)expando和uuid,即dom[expando]=uuid
是這樣理解吧
2016-12-15
前兩節(jié)我就在思考那個過濾的例子二,原來答案在后面,我之前研究了1個小時啊TT,老師你當(dāng)時就不能說一句留給疑問后面回答嘛QAQ
2016-12-13
最新回答 / _莫忘初衷_
已經(jīng)懂了 是defer.resolve(5)給defer.then里的參數(shù)回調(diào)運行之后是數(shù)字10,然后這個數(shù)字10再給defer.then()運行賦值給了filtered,所以filetered才有了done方法
2016-12-13
ajQuery.fn.extend({
get: function(num) {
if (num != null) {
return (num < 0 ? this[num + this.length] : this[num]);
} else {
return [].slice.call(this);
}
},
first: function() {
return this[0];
},
last: function(){
return this[this.length-1];
}
})
get: function(num) {
if (num != null) {
return (num < 0 ? this[num + this.length] : this[num]);
} else {
return [].slice.call(this);
}
},
first: function() {
return this[0];
},
last: function(){
return this[this.length-1];
}
})
2016-12-13
最贊回答 / 慕粉18144024425
因為ajQuery.fn = ajQuery.prototype = {},這相當(dāng)于又構(gòu)造一個新的對象“{}”,因此它本身的constructor指向的是Object,而不是ajQUERY,所以這邊需要強制指向
2016-12-13