var jQuery = function(global, factory) { return new jQuery.fn.init();}jQuery.fn = jQuery.prototype = { constructor: jQuery, init: function() { this.jquery = 3; return this; }, each: function() { console.log('each'); return this; }}jQuery.fn.init.prototype = jQuery.fn;// init構造函數jQuery().each().each()上面是一段jQuery源碼,我的問題是為什么代碼最后一行的第二個each函數還能夠執行
- 3 回答
- 0 關注
- 1029 瀏覽
添加回答
舉報
0/150
提交
取消