Fork me on GitHub
随笔 - 234  文章 - 49 评论 - 0 阅读 - 13万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
    <script type="text/javascript">
        /**
         * Boolean 布尔值有两个,主要用来做逻辑判断
         * true
         *      - 表示真
         * false
         *      - 表示假
         * 使用 typeof 检查布尔值时,会返回 boolean
         */
        var bool = true;
        console.log(bool);
        console.log(typeof(bool));
    </script>
</head>
<body>

</body>
</html>
posted on   anyux  阅读(46)  评论(0编辑  收藏  举报
(评论功能已被禁用)
点击右上角即可分享
微信分享提示