A simple way to create a delay in Javascript is to use the setTimeout method. The example below would log Hello , wait two seconds, and then log World .
確定! 回上一頁