📜  js 更改对象值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:23.508000             🧑  作者: Mango

代码示例3
var myObject = { boo: true, baa: 5 };
console.log(myObject); 
// expected output: 
// { boo: true, baa:5}

myObject.boo = false;
myObject.baa++;
console.log(myObject); 
// expected output: 
// { boo: false, baa:6}