Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试过这样做:
var1, var2, var3 = {}
并且只有最后一个 var 是一个对象,我是否可以创建多个空对象或数组而不做
var all = {}, used = {}, unused = {};
?
你写的类似于:
var1; var2; var3 = {};
你需要的是:
var1 = var2 = var3 = {};
标签?