關(guān)于繼承中的函數(shù)原型屬性的構(gòu)造器的設(shè)置問題
實(shí)現(xiàn)繼承中:1)Student.prototype.constructor=Student; 2)Student.prototype.constructor=Person;這兩句哪一句是對(duì)的?
實(shí)現(xiàn)繼承中:1)Student.prototype.constructor=Student; 2)Student.prototype.constructor=Person;這兩句哪一句是對(duì)的?
2016-03-22
舉報(bào)
2016-03-24
1)Student.prototype.constructor=Student;