js判断假值

js中的假值:在JavaScript中,false、null、0、空字符串、undefined 和 NaN被称为假值。

需要注意的是,这种方法字符串类型会返回true哦,比如'false','0'

Boolean(value);
原文地址:https://www.cnblogs.com/calamus/p/9009276.html