开发者

How to change routes in backbone app , with change of event

开发者 https://www.devze.com 2023-03-12 13:19 出处:网络
I hav开发者_开发技巧e a backbone js application I have some filters on a view. Is there any way to change route once I change filters on viewYou can call \"saveLocation\" in your controller with the h

I hav开发者_开发技巧e a backbone js application I have some filters on a view. Is there any way to change route once I change filters on view


You can call "saveLocation" in your controller with the hash location you want to save. This will add an entry in the history for that location.

You can also do window.location.hash = "xxx" but saveLocation is how backbone was designed.

0

精彩评论

暂无评论...
验证码 换一张
取 消