2017-12-19 15 views
-1

を使用してURLを変更します。 しかし、私はは私が</p> <blockquote> <p><a href="http://localhost/src/index.html#test_module" rel="nofollow noreferrer">http://localhost/src/index.html#test_module</a></p> </blockquote> <p>URLで自分のバックボーンモジュールを表示BACKBONE.JS

http://localhost/src/index.html#test_module/another_module

ようNOTE別のモジュールを表示する必要があります。

私のバックボーンビューはBackbone.history.navigate(another_module, {trigger:true});を使用しているが、それは私に

http://localhost/src/index.html#another_module

のようなURLを提供します
+0

詳細については[Backboneでのルーティングの仕組み](https://stackoverflow.com/a/39442604/1218980)、_spoiler警告:それは単なるリンクです._ –

答えて

1

どうしてこのようにしないでください。

Backbone.history.navigate("test_module/another_module", { trigger: true }); 

詳しくはdocumentation on navigateをお読みください。

-1

バックボーンを使用して開発する場合は、Backbone Routersを最良のパリティとして使用する必要があります。より理解を深めるために、ドキュメントを読むことができます。

関連する問題

 関連する問題