// 限制点击
$("#show_id").click(function () {
$("#show_id").attr({"disabled": "disabled"});
setTimeout(function(){ $("#show_id").removeAttr("disabled"); }, 1500);
});
$("#export_id").click(function () {
$("#export_id").attr({"disabled": "disabled"});
setTimeout(function(){ $("#export_id").removeAttr("disabled"); }, 1500);
});
上述代码需要引入jquery库,上面使用的是选择ID的方法,假如需要限制多个按钮的点击,可以选择类以限制按钮点击,详细见jquery选择器教程