uni-app 删除数组中的指定元素

作者: gavin 分类: uniapp 发布时间: 2022-01-28 11:29
var index0 = this.imageList.findIndex(item => {
       if (item.imageName == e.imageName) {
            return true
            }
          })
  this.imageList.splice(index0, 1)

原文链接:https://blog.csdn.net/weixin_44433499/article/details/107356593

相关说明:

var index0 = 数组.findIndex(item => {
       if (item == 匹配字符) {
            return true
            }
          })
  this.imageList.splice(index0, 1)