qfedu-web/www/js3.html

21 lines
409 B
HTML
Raw Permalink Normal View History

2023-09-18 11:21:50 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="flykhan" />
<meta name="keywords" content="c c++ 物联网" />
<title>JS运算符</title>
</head>
<body>
<script>
let x = 100,
y = "100";
// == 只比较值
// ===也比较数据类型
console.log(x === y);
console.log(x == y);
</script>
</body>
</html>