时间:2021-07-01 10:21:17 帮助过:35人阅读
$("#btn_saveFWSB").click(function(){
var obj=checkData(arr);
if(obj.flag==true){
hideAddDiv();
$.ajax({
type : "POST",
url : "/vts/doInsertFWZT.do",
async: false ,//ajax同步
data : "ip="+obj.ip+"&port="+obj.port+"&lx="+obj.lx+"&fwq="+obj.fwq+"&connIP="+obj.connIp+"&direct="+obj.direct,
success : function(data) {
if (data.success == false) {
alert(data.msg);
} else {
}
}
});
}else{
alert(obj.msg);
obj.msg="";
}
});