点击运行
JavaScript
this
关键词
在函数中,默认地,
this
引用全局对象。
在严格模式中,
this
是
undefined
,因为严格模式不允许默认绑定:
运行结果