$("#shebeiconfig").ajaxSubmit({
type : "post",
dataType : "json", //数据类型
url : "/deviceConfig/submitConfigFile",
success : function (data) {
alert("cheng");
console.log(data);
},
clearForm:false,
restForm:false
});
上面是我的代码使用了layui+springboot
每次提交完都有莫名奇妙的问题
解决方法是将提交按钮的button更换为a