JavaScript访问对象属性的方式
function Person ( name, age ) {
this.name = name;
this.age = age;
this.play = function () {
console.log("玩飞机");
};
}
var = new Person("卡卡西", 20);
obj.name = "小西"; 等于 obj["name"] = "小明";
obj.play(); 等于 obj["play"]();