js判断undefined类型
if (reValue=== undefined){
console.log("undefined");
}
if (typeof(reValue) == "undefined") {
console.log("undefined");
}
如果用===判断,那就与undefined对应
如果用typeof判断,那就与"undefined"对应
用==无法判断,因为undefined是null派生出来的
var reValue =null;
reValue == undefined;返回true
对于undefined推荐使用===(注意是三个等号)或使用typeof