1.2.1.1.全域環境與全域物件
全域執行環境 (global Execution context)被執行與建立
全域環境: Not inside the function
JavaScript engine會建立兩個東西, 在全域環境下下列兩者相同, 不須程式碼就能創造
Global Object (window)
不同tab有不同Execution context, 會產生不同window
this
參照到window
其他
Outer environment
null
Code
如果在全域環境定義變數或函式, 則變數或函式可在this中找到
Last updated
Was this helpful?