1656990830350.png 这里的b is not defined 不是undefined(未定义,已声明没赋值),是undeclared(未声明) 1656991001802.png typeof b 没有报错是因为typeof有一个特殊的安全防范机制。