jquery提交form表单,重复提交
web前端-js教程
仿dz论坛源码,vscode某些插件装不上,ubuntu常用命,tomcat exe 闪退,大型爬虫网络,php中flag,六安谷歌seo营销公司lzw
$(document).ready(function() {
$('form').submit(function() {
if(typeof jQuery.data(this, "disabledOnSubmit") == 'undefined') {
jQuery.data(this, "disabledOnSubmit", { submited: true });
$('input[type=submit], input[type=button]', this).each(function() {
$(this).attr("disabled", "disabled");
});
return true;
}
else
{
return false;
}
});
});