<!DOCTYPE html>标签:24,12,console,log,student,字符串,2022,var From: https://www.cnblogs.com/RUI2022/p/17003396.html
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script>
//<!--采用严格检查模式 use strict 放在第一行
//let 定义局部变量-->
'use strict';
let i=1;
var num = 1;
var name = "lr";
alert(name);
// if (2>1){
// alert("true");
// }
// 注意转义字符 \' 字符串 \n换行 \u4e2d \x41 AscII字符
console.log("a");
var student = "student";
console.log(student.toUpperCase());
console.log(student.substring(1,3));
//在浏览器的控制台打印 console.log(score) 可以用来调试
</script>
</head>
<body>
</body>
</html>;