// 如果 history 记录不够用,那就默默地失败呗router.go(-100)router.go(100)
这里的 失败 那会返回什么呢?
我想用这个 判断页面退到首页了 再 返回 (就弹框)
vue router的go,感觉使用了 html5 中 window.history.go 如果参数大于history记录的长度,会返回undefined
3 回答986 阅读✓ 已解决
5 回答17.1k 阅读✓ 已解决
2 回答13k 阅读
2 回答3.4k 阅读✓ 已解决
1 回答5.1k 阅读✓ 已解决
1 回答6.3k 阅读
vue router的go,感觉使用了 html5 中 window.history.go
如果参数大于history记录的长度,会返回undefined