初识前端-js的输出语句

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>

<script>
// 单行注释 ctrl + /

/* 多行注释 ctrl + shift + /*/
// 弹窗功能
// alert();

// 控制台输出日志
// console.log('我在控制台输出了日志');


// 会解析成标签
// document.write("<h1>我是在文档中输出内容</h1>");

 

 

</script>

</body>
</html>

posted @ 2023-08-15 23:37  进击的程序员3321  阅读(25)  评论(0)    收藏  举报