📅  最后修改于: 2022-03-11 15:04:31.890000             🧑  作者: Mango
var keys = ['foo', 'bar', 'baz'];
var values = [11, 22, 33]
var result = {};
keys.forEach((key, i) => result[key] = values[i]);
console.log(result);