用一個變量做爲對象的key值

var a = 'name';
var obj={};
obj[a] = 'rtjh';
相關文章
相關標籤/搜索