11 2018 档案
摘要:该方法中判断当前字母是大写字母还是小写字母的方法是: a a.toUpperCase() 或者 a a.toLowerCase() 上面的方法中判断大小写的方法是: 在搜查出的大小写字母中,char >= 'a' 是小写字母;反之值大写字母。 注意: 1)toUpperCase(),toLowerC
阅读全文
摘要:1.不同点 1.数据类型不同 typeof null 'object' typeof undefined 'undefined' 2.转为数值时值不同 Number(null) -->0 Number(undefined) -->NaN 3.用法和含义不同 null表示"空值" undefined表
阅读全文