Skip to content

Commit 7e2bf10

Browse files
authored
Create index.html
1 parent a607dba commit 7e2bf10

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

HTML+JS实现页面跳转/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>页面跳转</title>
6+
<script>
7+
function pageJump() {
8+
window.location.assign('http://www.baidu.com');
9+
}
10+
</script>
11+
</head>
12+
<body>
13+
<input type="button" value="页面跳转" onclick="pageJump()" />
14+
</body>
15+
</html>

0 commit comments

Comments
 (0)