• javascript中===和==的区别


    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    <body>
        
        <script type="text/javascript">
            // === 和 ==
            // === (判断更加严格)
            // 先会判断两边的表达式类型是否相同,如果相同再判断值
            // 如果类型不相同,直接返回 false
            // console.log(null === undefined); // false
    
            // == 存在数据类型的 隐式转换
            // console.log(null == undefined); // true
            // console.log(0 == "0"); // true
            // console.log(0 == ""); // true
            // console.log(123 == "123"); // true
    
            // 如果转换为布尔值:
            console.log(!!0);
            console.log(!!"");
        </script>
    </body>
    </html>
  • 相关阅读:
    pymysql
    Mysql
    协程
    线程池
    线程 条件
    线程 事件
    线程
    requests
    Linux 时区不对的解决办法
    Linux 简单命令
  • 原文地址:https://www.cnblogs.com/lsy0403/p/5918143.html
Copyright © 2020-2023  润新知