2019年10月8日
摘要: //普通对象 //函数对象(有原型 prototy 的属性) //原型的应用 继承 function Amial(){ this.type = '小于' } function cat(name){ this.name = name } cat.prototype = new Amial() var cat1 = new cat('小张') console.log(cat1.name,cat1.ty 阅读全文
posted @ 2019-10-08 13:49 carry,carry 阅读(149) 评论(0) 推荐(1) 编辑