expando值,如jqueryExpando00001;
uuid值,如1;
cache塊,cache[uuid]=緩存內容;
dom關聯expando和uuid,即dom[expando]=uuid
是這樣理解吧
uuid值,如1;
cache塊,cache[uuid]=緩存內容;
dom關聯expando和uuid,即dom[expando]=uuid
是這樣理解吧
2016-12-15
前兩節我就在思考那個過濾的例子二,原來答案在后面,我之前研究了1個小時啊TT,老師你當時就不能說一句留給疑問后面回答嘛QAQ
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