[01--DOM] 定时器
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!--setTimeout是一个方法,设置定时的功能-->
<script>
function f() {
alert("你能看到嘛?")
}
setTimeout(f,3000)
</script>
</head>
<body>
</body>
</html>