摘要: 对象冒充实现继承(call) 缺点:无法继承原型链上的方法 function User(name,age) { this.name = name; this.age = age this.run = function(){ alert(this.name+'在运动') }}function Menb 阅读全文
posted @ 2020-04-19 21:07 良荣十贰 阅读(153) 评论(0) 推荐(0)