重寫對(duì)象prototype時(shí),要重置prototype.constructor,不清楚構(gòu)造器的prototype.constructor指向誰(shuí)?為何能與原構(gòu)造器劃等號(hào)?
構(gòu)造器初始的prototype值是什么? function aaa(){} ; 為什么aaa.prototype.constructor=aaa;?
lengqiu
2017-05-25 18:26:27