#Javascript与html交互
<script type="text/javascript">
//alert是JavaScript的一个警告框函数
alert("hello javascript)
</script>
打开页面就放出alert框
<script type="text/javascript" src="1.js"></script>
用script引用js文件
js文件直接写代码就行
eg:alert("hello js")