var r = {},
i,
keys = [‘one’, ‘two’, ‘three’],
values = [‘a’, ‘b’, ‘c’];
for (i = 0; i < keys.length; i++) { r[keys[i]] = values[i];}
欢迎分享,转载请注明来源:内存溢出
var r = {},
i,
keys = [‘one’, ‘two’, ‘three’],
values = [‘a’, ‘b’, ‘c’];
for (i = 0; i < keys.length; i++) { r[keys[i]] = values[i];}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)