var obj = {"name":"leo"};
console.log(obj);
obj["age"] = "16";
console.log(obj);
控制台打印
{“name” : “leo”}
{“name” : “leo”, “age” : “16”}
var obj = {"name":"leo"};
console.log(obj);
obj["age"] = "16";
console.log(obj);
控制台打印
{“name” : “leo”}
{“name” : “leo”, “age” : “16”}