hnull
2014-12-24 19:10
是不是必须有 fn
ajQuery.prototype = {
name: 'aaron',
init: function(selector) {
this.selector = selector;
return this;
},
constructor: ajQuery
}
ajQuery.prototype.init.prototype = ajQuery.prototype;这样行不行呢
问题就是 fn是必须存在的吗, 存在的好处是什么?
我理解是为了,后面的调用时简写的
这个代码发错了吧
jQuery源码解析(架构与依赖模块)
84044 学习 · 290 问题
相似问题