function_new(){letnewObj={};letConstructor=Array.prototype.shift.call(arguments);//這里為什么不能直接letConstructor=arguments[0]呢?newObj.__proto__=Constructor.prototype;Constructor.apply(newObj,arguments);returnnewObj;}
萌新求教!求大佬看看這個(gè)問(wèn)題
胡說(shuō)叔叔
2019-08-09 23:20:12