wx.navigateTo 报红点
[ appservice 生成错误] pages/index/index.js: file: pages/index/index.js
unknown: Unexpected token, expected "," (8:4)
6 | } ,
7 |
> 8 | wx.navigateTo({
| ^
9 | url: '/pages/index/index?id'=+nid,
10 | })
11 | }(env: Windows,mp,1.06.2206090; lib: 2.17.0)
VM1837:1114 页面【pages/index/index]错误:
Error: module "pages/index/index.js" is not defined, require args is "pages/index/index.js
at require (VM1667 WAService.js:2)
at <anonymous>:1111:7
at doWhenAllScriptLoaded (<anonymous>:1146:21)
at Object.scriptLoaded (<anonymous>:1174:5)
at Object.<anonymous> (<anonymous>:1199:22)
at VM1667 WAService.js:2
at r (VM1667 WAService.js:2)(env: Windows,mp,1.06.2206090; lib: 2.17.0)
js 截图一下
这个index页面,是底部导航页面吗
贴一下js代码,看报错是格式问题
未找到该页面,页面注册了吗