var声明

作者: MYSUNFLOWER | 来源:发表于2022-07-05 11:17 被阅读0次
    1656990830350.png

    这里的b is not defined 不是undefined(未定义,已声明没赋值),是undeclared(未声明)


    1656991001802.png

    typeof b 没有报错是因为typeof有一个特殊的安全防范机制。

    相关文章

      网友评论

          本文标题:var声明

          本文链接:https://www.haomeiwen.com/subject/vcksbrtx.html