Object对象方法{ // 用变量做对象的键 let a = 'c' let obj = { [a]: 'b' } console.log(obj)// {c: "b"}}{ let obj = {a: 1, b: 2} console.log(Object.keys(obj))// ["a", "b&am
es6
2023-12-08
43 点赞
0 评论
65 浏览