html52.com
我爱小程序-开发者交流社区

数组方法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

网友回复

平仄:

大佬们,寻求帮助

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付