数组方法slice还有filter报错Cannot read property 'filter'?
在开发工具里面不报错,正常使用,真机调试出错 数组方法 var gongxue = arr.filter((val)=>{ return val.type == "gong" }) 报错 Cannot read property 'filter' of undefined;at api request success callback function TypeError: Cannot read property 'filter' of undefined