1.js
var list = {}; var arr = ["123","456","789"]; for (var key in arr) { list[key] = arr[key]; } console.log(list);