ajax异步提交表单

前端之家收集整理的这篇文章主要介绍了ajax异步提交表单前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
$.ajax({
cache: true ,
type: "POST" url:ajaxCallUrl,
data:$( '#yourformid' ).serialize(), //你的formid
async: false error: function (request){
alert( "Connectionerror" );
},
success: (data){
$( "#commonLayout_appcreshi" ).parent().html(data);
}
});
原文链接:https://www.f2er.com/ajax/160618.html

猜你在找的Ajax相关文章