这里的b is not defined 不是undefined(未定义,已声明没赋值),是undeclared(未声明)
1656991001802.png
typeof b 没有报错是因为typeof有一个特殊的安全防范机制。
这里的b is not defined 不是undefined(未定义,已声明没赋值),是undeclared(未声明)
typeof b 没有报错是因为typeof有一个特殊的安全防范机制。
本文标题:var声明
本文链接:https://www.haomeiwen.com/subject/vcksbrtx.html
网友评论