📄 timeout.js
字号:
// create and initialize a counter variable
var num = 0;
// a recursive function to display a message
function timeout()
{
// increment the counter
num++;
// display the message
alert("This is 10-Second Message No: " +num );
// set the interval before calling this function again
window.setTimeout("timeout()", 10000);
}
// call the function to start the routine
timeout();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -