网站首页
编程语言
数据库
系统相关
其他分享
编程问答
hdcthrottle
2024-10-22
手写节流函数-基本实现
<buttonclass="btn">按钮</button><!--<scriptsrc="./js/underscore.js"></script>--><script>functionhdcthrottle(fn,time){//获取开始时间letstartTime=0const_throttleFn=f