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函数还能够执行
添加回答
举报
0/150
提交
取消