该<script>元素用于定义客户端脚本,例如HTML文档中的JavaScript。
以下示例将在浏览器中显示一条问候消息:
例试试这个代码»
<head>
<title>Adding JavaScript</title>
<script>
document.write("<h1>Hello World!</h1>")
</script>
</head>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h60879.shtml