Vue Dev Map - daniel-qa/Vue GitHub Wiki

Vue + JavaScript 開發 Map

1. 語言基礎

運算子 (Operators)
    ├─ 算術運算子 (+ - * / %)
    ├─ 比較運算子 (== === != > <)
    ├─ 邏輯運算子 (! && ||)
    ├─ 位元運算子 (& | ^ << >>)
    ├─ 條件運算子 (?: 三元運算子)
    ├─ 展開 / 剩餘運算子 (...spread / ...rest)
    └─ 型別轉換運算子技巧 (!!, +value, Boolean(value))

2. 函式與結構 (邏輯核心)

  • 函式

    • 傳統函式 vs 箭頭函式 ()=>{}
    • 剩餘參數 (...args) / 展開運算子
    • 回呼函式 (callback) → Vue 事件回調
  • 解構賦值

    • 陣列解構 → const [a, b] = arr
    • 物件解構 → const { name } = obj
    • Vue 常見場景:從 props 或 store 解構資料

3. 非同步處理


4. 模組化

  • ES Modules

    • import / export (ES6)
  • Vue 常見場景


5. 物件導向 & 擴充

  • Class (ES6)

  • 原型 / 繼承

  • Vue 常見場景

    • 建立服務物件 (API Adapter, Data Model)
    • 封裝可重用邏輯 (class + Vue composition API)

6. Vue 特化整合


Flexbox (彈性盒子) 用於網頁排版佈局

Vue.Draggable

8. 瀏覽器運行機制與底層控制 #

  • DOM 與編輯器底層 API
  • DOM API
  • Range API
  • contenteditable
  • Text Node
  • MutationObserver
  • DOM 事件模型
  • 事件冒泡(Event Bubbling)
  • 事件捕獲(Event Capturing)
  • 事件委託(Event Delegation)
  • LocalStorage
  • Cookie
  • 渲染原理
  • 為什麼需要 this.$nextTick
⚠️ **GitHub.com Fallback** ⚠️