| 12345678910111213141516171819202122 |
- <!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(6>4 && 4<5)
- console.log(6>4 || 4>90)
- console.log(!true);
- </script>
- </body>
- </html>
|