<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<!-- 2.内嵌式的js -->
<script>
//prompt 这是一个输入框
prompt('请输入你的名字');
//alert 弹出警示框 输出的 展示给用户的
alert('亦');
// console 控制台输出 给程序员测试用的(按F12)
console.log('我是程序员能看到的');
</script>
<!-- 3.外部js script 双标签 -->
</head>
<body>
<!-- 1.行内式的js-->
</body>
</html>
编写方式:新建-文件-HTML-解决方案-右键-添加新建项-HTML