js-对象中操作属性
#### js-对象中操作属性
##### 字符串
```
OBJ = {
"key": "value"
}
```
##### 变量(使用中括号[])
```
let key = "key"
let value = "123”
obj = {
[key]: [value]
}
```
本文来自博客园,作者:w0000,转载请注明原文链接:https://www.cnblogs.com/w0000/p/15872689.html
#### js-对象中操作属性
##### 字符串
```
OBJ = {
"key": "value"
}
```
##### 变量(使用中括号[])
```
let key = "key"
let value = "123”
obj = {
[key]: [value]
}
```
本文来自博客园,作者:w0000,转载请注明原文链接:https://www.cnblogs.com/w0000/p/15872689.html