js中的 || 与 &&

在js逻辑运算中,0、""、null、false、undefined、NaN都会判为false,其他都为true;

猜你喜欢

转载自blog.csdn.net/u011067966/article/details/76652342