// export const antiShakes = (Refs, shake) => {
// function debounce(fn, wait) {
// var timer = null;
// return function () {
// if (timer !== null) {
// clearTimeout(timer);
// }
// timer = setTimeout(fn, wait);
// };
// }
// useEffect(() => {
// if (Refs == null) {
// return;
// }
// Refs.current.addEventListener('click', debounce(shake, 1000));
// }, []);
// };
antiShake
最新推荐文章于 2024-09-17 13:42:29 发布