Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-XYZ committed Dec 24, 2024
1 parent 15fb5d2 commit 3513558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/zh-tw/web/api/window/setinterval/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ setTimeout.call(myArray, myArray.myMethod, 2500, 2); // 相同的錯誤

## 使用注意事項

`setInterval()` 函數常用來設定重複執行的延遲,比如動畫等。你可以使用 {{domxref("Window.clearInterval", "clearInterval()")}} 來取消定時器
`setInterval()` 函數常用來設定重複執行的延遲,比如動畫等。你可以使用 {{domxref("Window.clearInterval", "clearInterval()")}} 來取消間隔

如果你希望在指定的延遲後只執行一次函數,請使用 {{domxref("Window.setTimeout", "setTimeout()")}}。

Expand Down

0 comments on commit 3513558

Please sign in to comment.