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