//如果是添加,在5秒内禁用按钮 $("#btn").attr("disabled",true); setTimeout(function() { $("#btn").attr("disabled",false); }, 5000);