今天在复习变量作用域遇到的问题
** 在IE(Microsoft Edge)控制台下: **
>var scope = "global"
<undefined
>scope
<"global"
>this.scope
<undefined
然后在Chrome浏览器控制台下:
>var scope = "global"
<undefined
>scope
<"global"
>this.scope
<"global"
why?是浏览器内核处理不同的原因吗?求指明