最新文章
混合 Dev 和 Life 的所有最新內容
183 篇2026-07-159 分鐘閱讀
回顧課程涵蓋的技術範圍,逐一對照課程開始時列出的開發者疑慮,並說明微型函式庫作為框架與純 Vanilla JS 之間的合理中間地帶。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #ReactiveProgramming 2026-07-1111 分鐘閱讀
說明如何用 Fetch API 為 Shadow DOM 載入外部 CSS 檔案,以及透過 prefetch/preload 提前下載改善效能的方式。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM #Performance 2026-07-1110 分鐘閱讀
實際為 Custom Element 啟用 Shadow DOM,觀察樣式封裝的效果,並比較幾種替代的 template HTML 定義方式。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM 2026-07-1011 分鐘閱讀
說明為何必須在 connectedCallback 而非 constructor 中載入 template,並透過實驗展示無 Shadow DOM 時 CSS 洩漏到全域的問題。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM 2026-07-1011 分鐘閱讀
實作 Coffee Masters 的三個頁面元件,說明 Custom Element 的建立流程、import 鏈與元件註冊的關係,以及如何將自訂元素接入 Router。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM #Router 2026-07-0911 分鐘閱讀
補充 Declarative Shadow DOM 的現況、為 Web Component 定義 CSS 的多種方式,以及 template 與 Custom Element 之間連結的建立方式。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM 2026-07-0912 分鐘閱讀
介紹 Shadow DOM 的隔離機制、open 與 closed 兩種模式,以及為 Custom Element 定義 HTML 內容的多種方式。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM 2026-07-0811 分鐘閱讀
介紹 HTML Templates 的運作方式,說明如何在 Custom Element 中克隆 template 內容,以及 template 內定義 CSS 樣式時的作用範圍問題。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM 2026-07-0813 分鐘閱讀
介紹 Web Components 的核心概念與組成標準,說明 Custom Elements 的建立方式、命名規則、生命週期方法,以及 Slot 與 data attributes 的使用。
You Might Not Need a Framework
#JavaScript #frontendMasters #youMightNotNeedAFramework #WebComponents #DOM MIT Licensed | Copyright © 2025-present Wen-Hsiu's Blog

