我有这样的Backbone路线:
route1:http://localhost/#dash-campaigns/campaigns
route2:http://localhost/#dash-campaigns/create
当用户在route2中时单击浏览器后退按钮时,不会调用相应的路径处理程序功能
我的路线定义如下:
routes: {
"": "defaultRoute",
"dash-campaigns/:query": "campView"
}
这基本上发生了becoz他们都有相同的哈希,但请注意完整的URL是不同的。我该如何解决这个问题......?