JavaScript原始类型-boolean

时间:2021-06-02 16:27:48   收藏:0   阅读:0
<!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
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!