触发同位置路由 [英] Trigger same location route

查看:15
本文介绍了触发同位置路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在backbone.js中触发相同的位置路由,例如当位置是/My/App/#/About并且用户再次点击具有相同路由的锚点以便刷新页面内容.

Is there a way to trigger same location route in backbone.js, for example when location is /My/App/#/About and user clicks again on anchor with the same route in order to refresh the page content.

推荐答案

Router.navigate('about', true);

这样你就可以手动触发路由.

That way you can trigger a route manually.

这篇关于触发同位置路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆