31 lines
611 B
HTML
31 lines
611 B
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>Document</title>
|
||
</head>
|
||
<body>
|
||
|
||
|
||
<script>
|
||
|
||
// ==, >= ,<=, ===
|
||
console.log(1>=3); //false
|
||
console.log(1<=3);//true
|
||
console.log(1==1);//true
|
||
console.log(1===1);//true
|
||
|
||
console.log(1==true);//true
|
||
console.log(1==="1");//true
|
||
console.log(1===true);//false
|
||
|
||
//== 再js中用与比较结果
|
||
//=== js中用于比较结果,以及类型
|
||
|
||
|
||
|
||
</script>
|
||
|
||
</body>
|
||
</html> |