Backbone.js 路由 url 作为查询字符串
Backbone.js routing with url as query string
我有 Backbone js 应用程序,我已经设置了路由器,现在我尝试将 url 参数作为查询字符串传递。
routes: {
'login?r=:query': 'doSomthing'
}
谁能帮我传递 url(http://someurl.org/dsfgsdjfsdgf) 我们的查询参数。
这个问题我找到了正确答案
router: {
'login?r:*query': 'dosomthing'
}
我有 Backbone js 应用程序,我已经设置了路由器,现在我尝试将 url 参数作为查询字符串传递。
routes: {
'login?r=:query': 'doSomthing'
}
谁能帮我传递 url(http://someurl.org/dsfgsdjfsdgf) 我们的查询参数。
这个问题我找到了正确答案
router: {
'login?r:*query': 'dosomthing'
}