課程
/前端開發
/JavaScript
/JavaScript深入淺出
在給student賦予新屬性的時候,就相當于new了一個新的student吧?
2015-04-20
源自:JavaScript深入淺出 8-3
正在回答
看不懂你的邏輯
不是的,只是在原來的基礎上添加而已。這跟java的String不同
舉報
由淺入深學習JS語言特性,且解析JS常見誤區,從入門到掌握
2 回答創建student的時候為什么不用new Person()
1 回答Student繼承Person后,它的prototype.constructor是Student吧?
2 回答Student.prototype.constructor = Student
4 回答此處不能用bosn.y找到是因為new bosn的時候按照 Student的方法在堆內存開辟了區域
2 回答5min時為什么說person是student的父類?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-05-08
看不懂你的邏輯
2015-06-21
不是的,只是在原來的基礎上添加而已。這跟java的String不同