過去常用的var、window. 之前寫JavaScript 總是用 var 宣告變數,但使用 var 宣告的變數,會汙染全域變數。 舉例: var a = 1; console.log(a); ...
確定! 回上一頁