摘要: 原型模式和基于原型继承的JavaScript对象系统 使用克隆的原型模式 var Plane = function(){ this.blood = 100; this.attackLevel = 1; this.defenseLevel = 1; }; var plane = new Plane() 阅读全文
posted @ 2019-12-16 10:54 6NULL9 阅读(203) 评论(0) 推荐(0)