学习笔记
首页
backend
backend
Node Js
服务端渲染
frontend
frontend
E S 6
HTML&CSS
HTML5&CSS3
Java Script
Min Programs
Network
Ng1
React
Type Script
VUE
Webpack
interview
interview
Base
Projects
reading
reading
Reading
tools
tools
Axios
Cli
Devtools
GIT
Linux
Vscode
Vuepress
包管理工具
小工具
GitHub
(opens new window)
#
防抖、节流
#
基础概念
节流:在 n 秒内执行一次,若在 n 秒内被重复触法,只有一次生效。—— 规定时间只执行一次。
防抖:在 n 秒后执行该事件,若在 n 秒内被重复触法,则重新计时。—— 规定时间只执行最后一次。
#
代码实现
#
节流
←
js 基础