router icon indicating copy to clipboard operation
router copied to clipboard

后退错误

Open wooodchen opened this issue 8 years ago • 10 comments

在ios的微信中(其他系统未验证),进入三级页面,通过左滑返回二级页面,显示为二级页面,实际已后退至一级页面,再后退将会退出页面。可参考https://github.com/weui/weui示例中,进入tab->navbar后的后退问题

wooodchen avatar May 10 '16 10:05 wooodchen

并未复现

progrape avatar Jun 03 '16 01:06 progrape

我也有这个错误,但是我没有这么复杂,就是进入页面后(第一个页面),点返回,页面中的列表,能出现2个,再点返回,列表出现3个,依次增加。。。。。。请问是什么原因

cgfeel avatar Jun 05 '16 23:06 cgfeel

在微信调试工具中点击【< 返回】提示

Uncaught TypeError: Cannot read property 'removeChild' of null   router.min.js:6

求解。。。。。

cgfeel avatar Jun 06 '16 00:06 cgfeel

@aiyuchen 好的,等会有空看看

progrape avatar Jun 06 '16 02:06 progrape

请教一下,有解决办法了吗

cgfeel avatar Jun 11 '16 05:06 cgfeel

@aiyuchen 试试从本仓库获取新的代码,在新的代码没有发现抛出异常

progrape avatar Jun 11 '16 06:06 progrape

就是bower直接拉取最新的github源

"simple-router": "https://github.com/progrape/router.git",

点击【第一个】页面的【返回】,【第一个页面】,就会提示

Uncaught TypeError: Cannot read property 'removeChild' of null     router.min.js:formatted:137 

cgfeel avatar Jun 11 '16 21:06 cgfeel

自己解决了。。。。。。我把

wx.ready(function () {
    //....
});

换成

$(function () {
    //....
});

就搞定了。。。。。 什么原因不明白。。。。

cgfeel avatar Jun 12 '16 09:06 cgfeel

我找到问题原因了,如果你是直接 xxx.html进入页面,会自动跳转到 xxx.html#/ 这个地址,下面再点几个页面,然后点后退,如果在xxx.html#/这个页面点后退,就会报错。 如果进入的页面直接就是 xxx.html#/ 不管怎么后退都不会有问题了

wcj343169893 avatar Jun 21 '16 02:06 wcj343169893

在IOS端。从当前页点击跳转到第二个页面,马上按左上角返回键。有时会出现两个链接来回循环跳n次的情况,页面也越拉越长。Simple Router在线demo就可以复现这个现象,是什么问题?

chengxuan12 avatar Oct 17 '16 06:10 chengxuan12