取值
var last = 'last';
var a = {
'first': 'hello',
[last]: 'world'
};
a['first'] // "hello"
a[last] // "world"
a['last'] // "worl
赋值:
let test1 = {};
test1["K"+ruleId] = [];
取值
var last = 'last';
var a = {
'first': 'hello',
[last]: 'world'
};
a['first'] // "hello"
a[last] // "world"
a['last'] // "worl
赋值:
let test1 = {};
test1["K"+ruleId] = [];