实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<h1>我的 Web 页面</h1>
6
7
<p id="demo">一个段落。</p>
8
9
10
<button type="button" onclick="myFunction()">点击这里</button>
11
12
<p><b>注释:</b>myFunction 保存在名为 "myScript.js" 的外部文件中。</p>
13
<script src="/static/example/myScript.js"></script>
14
15
</body>
16
</html>
17