更新时间:2022-12-11 14:41:36
您可以使用当作ajaxForm / ajaxSubmit的功能从 Ajax表格插件一>或jQuery的序列化功能。
You can use the ajaxForm/ajaxSubmit functions from Ajax Form Plugin or the jQuery serialize function.
当作ajaxForm
$("#theForm").ajaxForm({url: 'server.php', type: 'post'})
或
$("#theForm").ajaxSubmit({url: 'server.php', type: 'post'})
当作ajaxForm将发送时提交按钮是pressed。 ajaxSubmit会立即发送。
ajaxForm will send when the submit button is pressed. ajaxSubmit sends immediately.
序列化
$.get('server.php?' + $('#theForm').serialize())
$.post('server.php', $('#theForm').serialize())