我有這個<span @click="remove(product)" class="btn btn-sm btn-danger"><i class="fa fa-times"></i></span> element, It triggers this function:<br/>remove(product) { this.form.products.$remove(product);} <br/>但它輸出這個錯誤:TypeError: this.form.products.$remove is not a function我不知道出了什么問題。
如何從數組中刪除一個項目?
月關寶盒
2022-06-16 09:50:03