<html>
<head>
<title>实现按钮点击后,间隔3秒再次点击</title>
<script>
function filterClick(me){
//实现按钮点击一次,间隔3秒后再次点击
me.disabled = true;
window.setTimeout(function(){
me.disabled = false;
},5000);
}
</script>
</head>
<body>
<button onclick="filterClick(this);"><span> 查询</span></button>
</body>
<html>
实现点击按钮后,间隔N秒再次点击
最新推荐文章于 2024-04-07 17:27:05 发布