在js中以下两种字典写法有什么区别?
#1
storage.set({myTestVar:'my test var'});
#2
var obj= {};
obj[myTestVar] = 'my test var';
storage.set(obj);
xiaoxin
9 years, 7 months ago