And*_*dee 2 jquery query-string
我正在使用此插件:http : //plugins.jquery.com/project/query-object
'get'和'toString'方法工作正常,但'set','empty'和'remove'方法无效。在作者的演示中,他仅使用“ get”和“ toString”,但在页面顶部的示例中,他使用了其余的“ nice-to-have”方法。
有人遇到过吗?
谢谢。
我尝试了该set方法,并且效果很好:
alert($.query.set("section", 5).set("action", "do").toString());
Run Code Online (Sandbox Code Playgroud)
输出:
?section=5&action=do
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5857 次 |
| 最近记录: |