mapping(list) {
var List = [];
list.forEach((element, index, list) => {
if (this.data.type1) {
let {
place: col1,
distance: col3,
id: col4,
statu: col5,
time: col6
} = element;
List.push({
col1,
col3,
col4,
col5,
col6
});
}
});
return List;
},
ES6映射(解构赋值)实例(代码补全,只截取了关键部分)
最新推荐文章于 2023-03-15 17:27:19 发布