使用微信小程序框架wepy.js是报错'wx' is not defined no-undef
该错误是eslint报错吧。禁用eslint或者给eslint加上全局变量wx

在.eslintrc.js文件中加入以下内容
globals: { wx: true },
本文介绍了解决使用wepy.js框架开发微信小程序时遇到的'wx' is not defined错误的方法。通过禁用eslint或在.eslintrc.js文件中添加全局变量wx来解决此问题。
使用微信小程序框架wepy.js是报错'wx' is not defined no-undef
该错误是eslint报错吧。禁用eslint或者给eslint加上全局变量wx

在.eslintrc.js文件中加入以下内容
globals: { wx: true },
366
1933

被折叠的 条评论
为什么被折叠?