在低版本里 typeof a == undefined 是成立的, 但到了高版本里就要加引号了:
typeof a == "undefined"

解决方案 »

  1.   

    typeof 运算符把类型信息当作字符串返回。typeof 返回值有六种可能: "number," "string," "boolean," "object," "function," 和 "undefined."
      

  2.   

    to meizz(梅花雪)
    那么 a == undefined 在高版本应该还是成立的了
    现在就是 (a== undefined)的时候报 undefined未定义.
      

  3.   

    我在xp sp2下测试正常
    一共两次弹出提示
    undefined
    equals to undefined
      

  4.   

    55555555
    就是只有一台机器有问题,而且那台机器还重装过的,JScript可以运行,就是不认识undefined