functiont1(){this.name="dog";this.age=1;}functiont2(){this.color="red";}t1.prototype=newt2();為什么不是t1().prototype=newt2();在這個函數中t1和t1()具體指什么?。縯1是指這個函數對象?t1()是執行這個函數?
javascript函數中的括號()問題
胡子哥哥
2019-04-10 20:49:10