Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Day24. Svelte 如何編譯程式碼(2)
Search
Kalan
October 03, 2020
Programming
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Day24. Svelte 如何編譯程式碼(2)
Kalan
October 03, 2020
More Decks by Kalan
See All by Kalan
單頁式應用中的無障礙設計
kjj6198
0
860
選擇 Svelte 的三個理由 - JSDC
kjj6198
0
460
Svelte - 如何在前端框架中脫穎而出 | ModernWeb'21
kjj6198
0
260
状態管理を楽にする道
kjj6198
1
470
Day25. 如何解析 HTML 語法
kjj6198
0
220
Svelte 如何編譯程式碼(1)
kjj6198
0
280
Day22. Svelte 經驗談
kjj6198
0
260
Day18. UI 實戰篇 - 圖片檢視器
kjj6198
0
240
Day17. UI 實戰篇 - 音樂播放器
kjj6198
0
140
Other Decks in Programming
See All in Programming
残高管理から台帳サービスへの進化
artoy
1
190
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
140
JRuby: Past, Present, and Future
headius
0
230
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
370
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
210
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
カツオ、ご期待ください
suneo3476
0
170
mrbgem 三角測量 開発
ogom
0
240
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
730
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
290
Kubernetes祭り #2 OP/ED
bells17
0
110
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
190
Featured
See All Featured
Building an army of robots
kneath
307
47k
What's in a price? How to price your products and services
michaelherold
247
13k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
The untapped power of vector embeddings
frankvandijk
2
1.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Prompt Engineering for Job Search
mfonobong
0
500
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
980
YesSQL, Process and Tooling at Scale
rocio
174
15k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
Transcript
第 12 屆 IT 鐵⼈賽 30 天從 0 到 1
學 Svelte Day24 - Svelte 如何編譯程式碼(2)
第 12 屆 IT 鐵⼈賽 Svelte 會將元件編譯
第 12 屆 IT 鐵⼈賽 create_fragment
第 12 屆 IT 鐵⼈賽 create_fragment c(create): 建立 element element:
document.createElement text: document.createTextNode append: target.appendChild detach: target.removeChild
第 12 屆 IT 鐵⼈賽 create_fragment m(mount): 將 Element 放入
DOM 當中 p(patch): 元件更新時的執⾏函數 i(intro): 當 transition 存在時的執⾏ 函數 o(outro):當 transition 出場時 d(detch): 當元件銷毀時的執⾏函數
第 12 屆 IT 鐵⼈賽 instance Svelte 元件裡頭執⾏的程式會被包在 instance 中
第 12 屆 IT 鐵⼈賽 event listener
第 12 屆 IT 鐵⼈賽 SvelteComponent
第 12 屆 IT 鐵⼈賽 SvelteComponent