jquery提交ajax Form(未完成)
2015-12-29 12:39
591 查看
ajaxSubmit 和ajaxForm区别
官方解释
What is the difference between ajaxForm and ajaxSubmit?
There are two main differences between these methods:
ajaxSubmit submits the form, ajaxForm does not. When you invoke ajaxSubmit it immediately serializes the form data and sends it to the server. When you invoke ajaxForm it adds the necessary event listeners to the form so that it can detect when the form
is submitted by the user. When this occurs ajaxSubmit is called for you.
When using ajaxForm the submitted data will include the name and value of the submitting element (or its click coordinates if the submitting element is an image).
ajaxForm不能提交表单。在document的ready函数中,使用ajaxForm来为AJAX提交表单进行准备。提交动作必须由submit开始
ajaxSubmit 马上由AJAX来提交表单。你可以在任何情况下进行该项提交。
如果有乱码,加以下代码
官方解释
What is the difference between ajaxForm and ajaxSubmit?
There are two main differences between these methods:
ajaxSubmit submits the form, ajaxForm does not. When you invoke ajaxSubmit it immediately serializes the form data and sends it to the server. When you invoke ajaxForm it adds the necessary event listeners to the form so that it can detect when the form
is submitted by the user. When this occurs ajaxSubmit is called for you.
When using ajaxForm the submitted data will include the name and value of the submitting element (or its click coordinates if the submitting element is an image).
ajaxForm不能提交表单。在document的ready函数中,使用ajaxForm来为AJAX提交表单进行准备。提交动作必须由submit开始
ajaxSubmit 马上由AJAX来提交表单。你可以在任何情况下进行该项提交。
如果有乱码,加以下代码
contentType: "application/x-www-form-urlencoded; charset=utf-8"
相关文章推荐
- jQuery中attr()与prop()函数用法实例详解(附用法区别)
- 关于火狐中使用jquery的animate做动画效果的问题解决
- jQuery带tab切换搜索框样式代码
- jquery hide和show使用
- jquery移出select指定option
- jquery一次赋值多个元素
- jquery跳出each循环
- jquery 表格行计算
- jquery源码学习3
- jquery layout学习
- jquery源码分析2
- jQuery、ajaxFileUpload上传图片记录
- Jquery使用小技巧汇总
- jQuery EasyUI使用教程之设置数据网格的冻结列
- jquery插件封装
- Jquery可编辑table
- jquery源码学习1
- jQuery Validate
- jQuery性能优化
- JQuery autocomplete方法