📜  从角度数组中删除 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:19.695000             🧑  作者: Mango

代码示例1
removeTask(data:any){
    const index: number = this.list.indexOf(data);
    if (index !== -1) {
        this.list.splice(index, 1);
    } 
  }