FWQ
判断是否为布尔值的方法
Boolean() 构造函数可用于创建布尔对象以及布尔原始值,表示 true 或 false 值。 在下面的代码中,我详细介绍了 JavaScript 中布尔值的创建。 示例:sample52.html <script> // Create a Boolean object using the new keyword and the Boolean() constructor. var myBoolean1 = new…