getCurrentPages is not defined

发布于 7 年前作者 qiangyan9592 次浏览最后编辑 7 年前来自 ask

请问getCurrentPages()这个方法可以直接调用嘛?为什么我在哪调用都找不到这个方法呢?   也编译不过去

3 回复
zhongxiulan
zhongxiulan1 楼6 年前

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

tanping
tanping2 楼6 年前

你这到底是执行时候 function not defined呢?

还是ide的eslint代码监测过不去呢?

如果是后者

配置一下eslint的ignore啊

qianwei
qianwei3 楼5 年前

检查啥。。别检查算了。。要不就引入小程序的规则吧