我使用Backbone和Marionette。如何在Backbone中获取网址参数?
我有一个链接<a>
标签我传递了很少的参数,我怎么能在其他页面使用Backbone提取这些值?
<a href="http://localhost.com:8080/help/?name=matth&age=25&[email protected]">View Details</a>
地址栏网址:
http://localhost.com:8080/help/?name=matth&age=25&[email protected] 44
使用PHP,这很简单:
$Url = $_GET['state']."#".$_GET['city'];
如何将我的主干应用程序中实现呢?
[使用querystring导航路线]的可能重复(http://stackoverflow.com/questions/11671400/navigate-route-with-querystring) –