JavaScript
Introduction
基礎程式
IF
for
function
Object/Array
while
六角技能
local storage
event
DOM
BOM
ajax
基礎觀念
執行環境與堆疊
Event queue (事件佇列)
動態型別
object
object copy
運算邏輯
this
閉包
Function 與 Hoisting
原型鍊、原型繼承
原型繼承-建構式
原型鍊的概念來創造原型
ES6
let/const/var
Arrow functions
object縮寫
JS-template String
JS-展開.../其餘
Fetch
Promise
Await 與 Async
other
語法糖
座標
OTHER 觀念
深度
math
陣列處理
列出資料
搜尋
資料間隔
陣列新增刪除
累加器
資料轉型
other
複製資料
other api
大小寫
Powered by
GitBook
let/const/var
VAR
var 時機是大量用的時候使用,不過還是建議不使用
var 是用來宣告變數 變數沒有宣告會屬於全域 容易影響其他的變數 建議還是要寫
Let/Const
盡量避免汙染全域變數(window),使用 let/const(代替var)
const(宣告常數不能做修改,但是陣列跟物件是可以的)
let/const 用來宣告區塊(={})裡的變數
const 必須一定要有值
results matching "
"
No results matching "
"