深刻理解JS原型链

function Person (name) { this.name = name; }chrome function Mother () { }数组 Mother.prototype = {    //Mother的原型浏览器     age: 18,函数     home: ['Beijing', 'Shanghai']工具 };测试 Person.prototype = new Mother
相关文章
相关标签/搜索