第一, 0是false,这个大家都知道。
注意:var a="0"; 变量a的值是true;
第二,当一个变量未定义时,是undefined类型,undefined类型是false.
第三,NaN是false.
js中,只有这三种情况是false,其他的全部是true.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn