Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打电话时没有触发我的路由功能app.navigate("/search#?q="+q, {trigger: true});。
app.navigate("/search#?q="+q, {trigger: true});
路由定义得很好,因为如果我在 navigate() 调用后刷新页面,路由功能就会被正确触发。
有任何想法吗 ?
Backbone.history.start({pushState: true})
这可能会有所帮助。