<html>
<head>
<script type="text/javascript">
alert("hello,word!") ; //alert()是一个函数
</script>
</head>
<body>
</body>
<html>
外部导入方式
.js文档
alert("hello,word!");
在html中引入.js文档
<html>
<head>
<script src="javascript.js">
</script>
</head>
<body>
</body>
<html>