ajaxSubmit
https://files.cnblogs.com/humble/jquery.form.js
function ajaxSubmit(action, formID,hasFile) {
var options = {
url:action,
dataType: "json",
type: 'POST',
success: function (json) {
alert(json);
}
};
var form = $('#' + formID);
if (hasFile == true) {
form.attr("enctype", "multipart/form-data");
}
$('#'+formID).ajaxSubmit(options);
}
少侠,我看你气度不凡天赋异禀,骨骼精奇,这么帅,来了就帮推荐一把吧
我的最近更新