let data = this.orderList.filter(item => item.categoryName.indexOf(name) !== -1)
在微信小程序里面可以这样使用 filter() 方法吗
this.data.orderList 第一步就错了
可以。写法没限制。