| 12345678910111213141516171819 |
- <!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>
- // 常见问题
- var a = 3;
- // 条件判断 判断的是最终的结果
- // 在条件判断中 0为假 其他数组为真 空字符串为假 其他字符串为真
- if(a=""){
- console.log("a等于5");
- }
- </script>
- </body>
- </html>
|