js中的 || 与 &&

在js逻辑运算中,0、""、null、false、undefined、NaN都会判为false,其他都为true;
posted @ 2018-03-20 18:07  ByteX  阅读(11)  评论(0)    收藏  举报