整理如下: let data = {3: '影视', 4: '音乐', 5: '广场舞', 6: '游戏', 7: '综艺', 8: '动漫', 9: '翻唱', 10: '生活', 11: '美食', 12: '亲子'} let arr = [] for (var i in data) { let c = { id: i, label: data[i] } arr.push(c) } console.log(arr) // [{id: 3, label: '影视'}, {id: 4, labe…