Jquery添加查询字符串参数而不刷新页面

时间:2014-04-28 23:22:14

标签: jquery querystringparameter

我想使用Jquery在不刷新页面的情况下将查询字符串添加到URL。有可能吗?

我不想使用#。

样品:

http://test.com/prodcuts

添加查询字符串后

http://test.com/prodcuts?name=abc

我不喜欢以下网址。

http://test.com/prodcuts#?name=abc

1 个答案:

答案 0 :(得分:1)

看看这个:http://benalman.com/projects/jquery-hashchange-plugin/ 你可以看到一些例子。