HTML文件,建议用Visual Studio Code或者HBuilder X打开查看
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>比较运算符</title>
<script>
/* >, <, >=, <=
==(等于,仅要求值一样), !=
===(全等于,要求数据类型与值完全一样), !== */
console.log(18 == '18');//含有隐式转换,true
console.log('18' === 18);//数据类型不同,false
</script>
</head>
<body>
</body>
</html>