Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lsqy committed Dec 16, 2019
1 parent ee78160 commit 854c7ef
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions code/debounceAndThrottle.html
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 added xmind/前端架构进阶.xmind
Binary file not shown.

0 comments on commit 854c7ef

Please sign in to comment.