//第一種 一個數組中的值為key 一個數組中的值為value let arr1 = ['內存','顏色','尺寸']; let arr2 = [1,2,3]; let temp = arr1.map((value,index,arr) => { let json = {}; json[value] = arr2[index] return json }); console.log(temp); //第二種 一個數組中的值為對象['desc']值 一個數組中的值為對象['name']的值 let result = arr1.map((value,index) => ({desc:value, name:arr2[index]})); console.log(result);