摘要:
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... 阅读全文