ElementUI之el-tag标签移除

  
            {{tag.name}}
  

  data中定义的数组     tags:[]
      


    // 标签删除
    handleClose (tag) {
      const item = this.tags.indexOf(tag)
      index.Of()  返回某个元素在数组中的位置
      this.tags.splice(item, 1)
    },

你可能感兴趣的:(ElementUi,elementui,javascript)