---
# System prepended metadata

title: setTimeout語法介紹

---

# setTimeout語法介紹

語法:

let time = setTimeout(註冊的函式,秒數);


使用語法如下:
let time = setTimeout(function(){

    console.log('寫入所需要觸發的條件')

},2000)