let stockConfirmationResultDtos = [];
this.confirmations.forEach((item, index) => {
stockConfirmationResultDtos.push(Object.assign({}, item,
{'planId': this.planId}))
});
let stockConfirmationResultDtos = [];
this.confirmations.forEach((item, index) => {
stockConfirmationResultDtos.push(Object.assign({}, item,
{'planId': this.planId}))
});
本文标题:2020-12-31如何快捷给数组对象添加新属性
本文链接:https://www.haomeiwen.com/subject/vogloktx.html
网友评论