Skip to content

Commit f4ff4dc

Browse files
authored
fix: 优化翻译
1 parent 6e14556 commit f4ff4dc

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/08-settimeout-setinterval

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/08-settimeout-setinterval/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ let timerId = setTimeout(function request() {
177177

178178
并且,如果我们调度的函数占用大量的 CPU,那么我们可以测量执行所需要花费的时间,并安排下次调用是应该提前还是推迟。
179179

180-
**嵌套的 `setTimeout` 能够精确地设置两次执行之间的延时,而 `setInterval` 却不能**
180+
**嵌套的 `setTimeout` 相较于 `setInterval` 能够更精确地设置两次执行之间的延时**
181181

182182
下面来比较这两个代码片段。第一个使用的是 `setInterval`
183183

0 commit comments

Comments
 (0)