摘要:
1.使用call或apply绑定构造函数 animal.apply(this.arguments) 2.使用prototype属性 Cat.prototype = new Animal(); Cat.prototype.constructor = Cat; var cat1 = new Cat("大 阅读全文
posted @ 2017-07-26 15:17
77小仙女呀
阅读(377)
评论(0)
推荐(0)
浙公网安备 33010602011771号