且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用jQuery构造带参数的URL

更新时间:2022-12-13 19:09:42

查看jQuery函数.param(),这应该可以解决问题。

Check out the jQuery function .param(), that should do the trick.

http://api.jquery.com/jQuery.param/

然后,您可以创建一个函数,将.param()生成的字符串附加到URL。

You can then just create a function which appends the string generated by .param() to a url.