var arr=['123#2','123#3','123#4','123#5','123#6']
let listCode = [];
arr.forEach((item) => {
listCode.push({
code: item.split("#")[0],
sc: item.split("#")[1],
});
});
将“#”左右两边的数据拆分成数组
猜你喜欢
转载自blog.csdn.net/huhuhuja/article/details/121475023
今日推荐
周排行