Sco*_*ttE 10
或者,对于最新版本的jquery,您可以使用:
http://docs.jquery.com/Ajax/serialize - 到URL编码的字符串person.name=john&person.age=20
要么
http://docs.jquery.com/Ajax/serializeArray - 到JSON
一种方法是使用 jQuery Form插件,如下所示:
$('#myFormId').formSerialize();
Run Code Online (Sandbox Code Playgroud)
Serializes the form into a query string. This method will return a string in the format: name1=value1&name2=value2
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9988 次 |
| 最近记录: |