var a = undefined; ->false var a = 0; ->false var a = 0.0; ->false var a = NaN; ->false var a = ""; ->false var a = null; ->false var a = false; ->false var a ->false function a(){ };
//调用无返回值的函数,默认返回值是undefined
a() ->false
原文地址:https://www.cnblogs.com/miaoxingren/p/9903062.html
时间: 2024-10-09 00:51:14