Fork 2me on GitHub

js中的true和false

在js中null、0、undefined、空都是false;

非上述值时都是true。

posted @ 2015-04-27 16:37  黄3维  阅读(376)  评论(0编辑  收藏  举报