Dynamic object keys

后端 未结 2 1437
既然无缘
既然无缘 2021-01-15 08:42

Im trying to create an dynamic object with dynamic keys eg:

var test = \"test\";
var obj = {
    test:\"bananas\"
}

But I get an error:

2条回答
提交回复
热议问题