wepy开发小程序使用getApp().globalData保存全局数据很方便,但是会在控制台看到很多报错:“error 'getApp' is not defined no-undef”,这是eslint报错。

解决办法:在.eslintrc.js文件中加入   globals: { getApp: true }

wepy开发小程序eslint报错error 'getApp' is not defined no-undef

相关文章:

  • 2021-10-05
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-05-29
  • 2021-12-28
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
相关资源
相似解决方案