jQuery添加时在5秒内只能操作一次

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

你可能感兴趣的:(jquery,jquery)