摘要: 封装 类名首字母大写 this + prototype var Cat ={ name:''; color:''; } /** * this */ var Cat=function(name,color){ this.name = name; this.color = color; } /** *p 阅读全文
posted @ 2017-02-23 17:08 黄鹂 阅读(105) 评论(0) 推荐(0)