是不是必須有 fn
是不是必須有 fn
ajQuery.prototype?=?{ ????????name:?'aaron', ????????init:?function(selector)?{ ???????????????this.selector?=?selector; ???????????????return?this; ????????}, ????????constructor:?ajQuery } ajQuery.prototype.init.prototype?=?ajQuery.prototype;
這樣行不行呢
問題就是 fn是必須存在的嗎, 存在的好處是什么?
2015-01-20
我理解是為了,后面的調(diào)用時簡寫的
2014-12-30
這個代碼發(fā)錯了吧