如何避免鼠標重複點擊?

const btn = document.getElementById('btn'); function throttle(fn,wait){ var timer; return function(...args){ if(!timer){ timer = setTimeout(()=>timer=null,wait);
相關文章
相關標籤/搜索