關(guān)于2:00的prototype指向
2:00那里,因為Bosn.prototype是指向原Student.prototype的內(nèi)存實體,而Student.prototype賦了一個新對象,是創(chuàng)建一個新內(nèi)存實體然后Student.prototype指向它,所以這樣一來Bosn.prototype !== Student.prototype了,這樣理解?
2:00那里,因為Bosn.prototype是指向原Student.prototype的內(nèi)存實體,而Student.prototype賦了一個新對象,是創(chuàng)建一個新內(nèi)存實體然后Student.prototype指向它,所以這樣一來Bosn.prototype !== Student.prototype了,這樣理解?
2015-07-25
舉報
2016-01-06
我覺得不是的,Bosn并不可以作為構(gòu)造函數(shù),所以它是沒有prototype屬性的