Skip to content

Commit d07450c

Browse files
committed
Update
1 parent b85d154 commit d07450c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Example/定时器.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>定时器</title>
7+
</head>
8+
9+
<body>
10+
<img src="" alt="">
11+
<script>
12+
function bang() {
13+
document.getElementByTagName('img')[0].src = 'warn.jpg';
14+
}
15+
setTimeout(bang(), 3000);
16+
</script>
17+
</body>
18+
19+
</html>

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,6 +2181,12 @@ function qSort(list) {
21812181
 }
21822182
```
21832183

2184+
11. 定时器
2185+
2186+
```JavaScript
2187+
2188+
```
2189+
21842190
##
21852191
### JS性能优化
21862192
*

0 commit comments

Comments
 (0)