if (reValue == undefined){
        alert("undefined");
    }
    // 无法判断,使用typeof
    if (typeof(reValue) == "undefined") { 
       alert("undefined"); 
    }  

typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"

 
 

相关文章:

  • 2021-07-11
  • 2021-08-24
  • 2021-10-02
  • 2022-12-23
  • 2021-08-16
  • 2022-01-16
  • 2022-02-11
猜你喜欢
  • 2021-11-15
  • 2022-01-24
相关资源
相似解决方案