js
This commit is contained in:
11
javascriptpress/demo/demo1.html
Normal file
11
javascriptpress/demo/demo1.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>javascript演示</title>
|
||||
<script>
|
||||
alert("hell world");
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
打开页面的时候会出现一个弹框 内容为hello world
|
||||
</body>
|
||||
</html>
|
||||
11
javascriptpress/demo/demo2.html
Normal file
11
javascriptpress/demo/demo2.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>javascript演示</title>
|
||||
<script>
|
||||
alert("你好世界");
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
打开页面的时候会出现一个弹框 内容为 你好世界
|
||||
</body>
|
||||
</html>
|
||||
14
javascriptpress/demo/demo3.html
Normal file
14
javascriptpress/demo/demo3.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>javascript演示</title>
|
||||
<script>
|
||||
function hello(){
|
||||
alert("你好")
|
||||
}
|
||||
hello()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
打开页面的时候会出现一个弹框 内容为 你好
|
||||
</body>
|
||||
</html>
|
||||
18
javascriptpress/demo/demo4.html
Normal file
18
javascriptpress/demo/demo4.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>javascript演示</title>
|
||||
<script>
|
||||
function hello(){
|
||||
alert("你好")
|
||||
}
|
||||
hello()
|
||||
function bay(){
|
||||
alert("再见")
|
||||
}
|
||||
bay()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
打开页面的时候会出现一个弹框 内容为 你好 然后会出现 再见
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user