案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script>
5
function myFunction()
6
{
7
alert("Hello World!");
8
}
9
</script>
10
</head>
11
12
<body>
13
<button onclick="myFunction()">点击这里</button>
14
</body>
15
</html>
16