摘要: UNDERSTANDING OBJECTS——了解对象早期的开发者这样定义对象:var person = new Object();person.name = “Nicholas”;person.age = 29;后来人们倾向于:var person = { name: “Nicholas”, age: 29, job: “Software Engineer”, sayName: function(){ alert(this.name); }};Types of Properties——属性类型ECMA-262 fi fth edition descr... 阅读全文
posted @ 2012-05-02 17:38 e.e.p 阅读(286) 评论(0) 推荐(0) 编辑