-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>防抖与节流</title> | ||
</head> | ||
<body> | ||
<script> | ||
// 相同点: | ||
// 在不影响客户体验的前提下,将频繁触发的事件,进行次数缩减,避免大量计算或者渲染导致页面卡顿 | ||
// 不同点: | ||
// 防抖是将多次执行变为最后一次执行,节流是将多次执行变为在滚定时间内执行一次 | ||
</script> | ||
</body> | ||
</html> |
Binary file not shown.