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