深刻理解JS原型鏈

function Person (name) { this.name = name; }chrome function Mother () { }數組 Mother.prototype = {    //Mother的原型瀏覽器     age: 18,函數     home: ['Beijing', 'Shanghai']工具 };測試 Person.prototype = new Mother
相關文章
相關標籤/搜索