https://www.cnblogs.com/ghost-xyx/p/4035615.html
https://baike.baidu.com/item/ECMAScript/1889420?fr=aladdin
//内部标签
<head>
<meta charset="UTF-8">
<title>js</title>
<!--script标签内写js代码 -->
<script>
alert(‘hello,javascript‘);
</script>
</head>
外部引入
//注意:script标签必须成对出现
//script标签必须成对出现
<script src="js/js1.js"></script>//写在html中head内部
alert(‘hello,javascript‘);//写在js文件中
alert(‘hello,javascript‘);原文:https://www.cnblogs.com/chenstudy/p/14736906.html