js
This commit is contained in:
15
javascriptpress/demo/demo5.html
Normal file
15
javascriptpress/demo/demo5.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>javascript演示</title>
|
||||
<script>
|
||||
function hello(){
|
||||
var name = "啦啦啦";
|
||||
var age = 18;
|
||||
alert(name);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<button onClick="hello()">点我运行hello这个函数</button>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user