let arry = this.teamList
let arryNew = []
arry.map((item, index) => {
arryNew.push(Object.assign({}, item, { disabled: true }))
})
参考链接: https://blog.csdn.net/localhost_1314/article/details/100776825
本文介绍了如何使用JavaScript对teamList数组中的每个元素进行复制,并设置disabled属性为true,以实现批量禁用的功能。
let arry = this.teamList
let arryNew = []
arry.map((item, index) => {
arryNew.push(Object.assign({}, item, { disabled: true }))
})
参考链接: https://blog.csdn.net/localhost_1314/article/details/100776825
1209
4万+

被折叠的 条评论
为什么被折叠?
