JavaScript原始类型-boolean

<!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.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        var bool = true;
        var bool2 = false;
        console.log(bool, bool2);
    </script>
</body>
</html>
 
// 返回的结果是true false
posted @ 2021-05-29 21:59  #Friday  阅读(44)  评论(0)    收藏  举报