js中null和" "的区别 两者的区别为: null是对象类型,表示空对象 alert(typeof(null)); // object " "是一个空格的字符串 alert(typeof(" ")); // string