js数组操作

let arr1 = ['a','b','c'];let arr2 = ['d','e','f'];

怎么才能变成

let arr3 = [{'key1':'a','key2':'d'},{'key1':'b','key2':'e'},{'key1':'c','key2':'f'}];


慕少森
浏览 537回答 2
2回答

慕的地8271018

let arr1 = ['a','b','c'];let arr2 = ['d','e','f'];怎么才能变成let arr3 = [{'key1':'a','key2':'d'},{'key1':'b','key2':'e'},{'key1':'c','key2':'f'}];

偶然的你

let arr1 = ['a','b','c'];let arr2 = ['d','e','f'];怎么才能变成let arr3 = [{'key1':'a','key2':'d'},{'key1':'b','key2':'e'},{'key1':'c','key2':'f'}];
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript