触发同一位置的路线 [英] Trigger same location route

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

问题描述

有没有触发Backbone.js的同一地点的路线,例如当位置为 /我的/应用/#/关于键,用户再次点击锚的方法为了刷新页面内容相同的路线。


解决方案

  Router.navigate(关于,真正的);

这样,你可以手动触发的路线。

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天全站免登陆