jQuery Form Plugin

本文详细解析了jQuery中的AjaxForm和AjaxSubmit的功能与用法。AjaxForm用于为AJAX提交表单做准备,而AjaxSubmit则直接提交表单。两者虽相似但作用不同。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://malsup.com/jquery/form/

Overview

The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use  AJAX . The main methods,  ajaxForm  and  ajaxSubmit , gather information from the form element to determine how to manage the submit process. Both of these methods support numerous options which allows you to have full control over how the data is submitted.  Submitting a form with AJAX doesn't get any easier than this!
 



JQuery中的AjaxForm和AjaxSubmit使用差不多功能也差不多。很容易误解。 
按照作者的解释: 
AjaxForm  
ajaxForm不能提交表单。在document的ready函数中,使用ajaxForm来为AJAX提交表单进行准备。提交动作必须由submit开始 
ajaxSubmit  
马上由AJAX来提交表单。你可以在任何情况下进行该项提交。

 http://www.cnblogs.com/qiantuwuliang/archive/2009/09/14/1566604.html



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值