var quest = this.doctorsInDept.filter(item=> item.id != this.replaceForm.doctorId);
this.doctorsInDept是JSON数据
this.replaceForm.doctorId我想过滤掉这个数据
过滤前
![](https://img.haomeiwen.com/i4154098/2069b5f26f2ed78f.png)
过滤后
![](https://img.haomeiwen.com/i4154098/c2cc25aa530a45a1.png)
var quest = this.doctorsInDept.filter(item=> item.id != this.replaceForm.doctorId);
this.doctorsInDept是JSON数据
this.replaceForm.doctorId我想过滤掉这个数据
过滤前
过滤后
本文标题:VUE 过滤掉JSON数据中不想要的数据
本文链接:https://www.haomeiwen.com/subject/ynmzrktx.html
网友评论