var bool = false; console.log(typeof bool); console.log(bool);
使用typeof检查一个布尔值时,会返回一个boolean
京公网安备 11010502049817号