JavaScript的类型转换,显式转换和隐式转换

isNaN()判断非数,非数是转换true, Number返回false,isNaN()先要进行隐式转换在判断 NaN与包括自己在内任何东西都不相等 undefined == null 返回true Typeof(null)—object Typeof(a)— undefined +undefined— NaN -true— -1 Typeof : number,string,boolean,ob
相关文章
相关标签/搜索