摘要: ###js原型图 ##JS继承的几种方式 ###1、原型链继承 function Animal(name, weight) { this.name = name; this.weight = weight; } Animal.prototype.eat = function () { console 阅读全文
posted @ 2021-05-17 16:39 陈山豆 阅读(118) 评论(0) 推荐(0) 编辑