gpt4 book ai didi

javascript - 流路由器 meteor 的历史

转载 作者:行者123 更新时间:2023-11-30 16:04:32 25 4
gpt4 key购买 nike

使用 iron router 返回上一页就像history.back()我如何使用流路由器实现相同的目的

最佳答案

根据 Flow 路由器文档:

Normally, all the route changes made via APIs like FlowRouter.go and FlowRouter.setParams() add a URL item to the browser history.

所以 history.back() 应该按预期工作。

如果你使用 FlowRouter.withReplaceState(fn) 那么历史将不会被记录。请参阅:https://github.com/kadirahq/flow-router#flowrouterwithreplacestatefn了解更多详情

这不是默认的想法。

关于javascript - 流路由器 meteor 的历史,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37243450/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com