JS - false 的 六种类型

document.write("--------------");
document.write(!false);
document.write("---------------");
document.write(!0);
document.write("---------------");
document.write(!false);
document.write("---------------");
document.write(!undefined);
document.write("---------------");
document.write(!NaN);
document.write("---------------");
document.write(!null);
document.write("---------------");

猜你喜欢

转载自www.cnblogs.com/500m/p/12233981.html