防止表单重复提交:
代码语言:javascript复制var flag = false;
function jqButtonBC_onClickClient_insert(rc) {
if (flag==false) {
flag = true;
Artery.get('jqFormAreaaadff').submit(function(result) {
if (result == 1) {
Artery.showMessage("保存成功");
Artery.getWin().get("jqGridf5ad2").reload();
Artery.getWin().close();
} else {
Artery.showError("保存失败");
}
});
} else {
return;
}
}
参考博客:
写的真的很好 https://blog.csdn.net/chenzao666/article/details/81222855