jQuery异步提交表单
// 使用 jQuery异步提交表单
$('#userform').submit(function() {
jQuery.ajax({
url : '<%=basePath%>rqcode/generatec',
data : $('#userform').serialize(),
type : "POST",
beforeSend : function() {
$('#submitButton').hide();
$('#editRealMsgImg').show();
},
success : function() {
$('#submitButton').hide();
$('#editRealMsgImg').show();
}
});
return false;
});
浙公网安备 33010602011771号