js中逻辑为false的8种情况时间:2023-03-10 04:46:57 如果对象无初始值或者其值为 0、-0、null、""、false、undefined 或者 NaN,那么对象的逻辑值为 false。 typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"