摘要: 一、理解对象: 第一种:基于Object对象 var person = new Object(); person.name = 'My Name'; person.age = 18; person.getName = function(){ return this.name; } 第二种:对象字面量 阅读全文
posted @ 2017-04-27 08:44 ylnog 阅读(194) 评论(0) 推荐(0) 编辑