我查看我的主干模块
URL。但我需要查看另一个模块
注意:
我的骨干视图是使用Backbone.history.navigate(another_module, {trigger:true});
,但它给了我一个像这样的URL
你为什么不这样试试呢?
Backbone.history.navigate("test_module/another_module", { trigger: true });
阅读documentation on navigate
了解更多信息。
在使用骨干开发时,您应该使用Backbone Routers作为最佳实践。您可以阅读文档以便更好地理解。