从一级页面跳转到二级页面,由二级页面返回的时候提示报错,nodeId找不到

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

从二级页面返回一级页面的时候提示的,一直找不到原因,请官方大大帮助一下!

3 回复
rma
rma1 楼6 年前

我这里也很多

lina
lina2 楼6 年前

估计是你在 setTimeout 里 setData,但是页面已经卸载了所以报错了…试试在 onUnload 里面 clearTimeout…

songxiulan
songxiulan3 楼4 年前

遇到了类似的情况,报错指向了WAService.js和appservice

```

ReferenceError: nodeId is not defined

    at http://127.0.0.1:59565/appservice/\_\_dev\_\_/WAService.js:7:30276

    at e.(anonymous function) (http://127.0.0.1:59565/appservice/\_\_dev\_\_/WAService.js:4:4785)

    at a (http://127.0.0.1:59565/appservice/appservice:1053:9451)

    at e.registerCallback (http://127.0.0.1:59565/appservice/appservice:1053:9638)

    at m.forEach (http://127.0.0.1:59565/appservice/appservice:1053:5612)

    at Array.forEach (<anonymous>)

    at d (http://127.0.0.1:59565/appservice/appservice:1053:5592)

    at WebSocket.j.onmessage (http://127.0.0.1:59565/appservice/appservice:1053:5485)

```