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
870
選擇 Svelte 的三個理由 - JSDC
kjj6198
0
470
Svelte - 如何在前端框架中脫穎而出 | ModernWeb'21
kjj6198
0
270
状態管理を楽にする道
kjj6198
1
480
Day25. 如何解析 HTML 語法
kjj6198
0
230
Svelte 如何編譯程式碼(1)
kjj6198
0
300
Day22. Svelte 經驗談
kjj6198
0
270
Day18. UI 實戰篇 - 圖片檢視器
kjj6198
0
250
Day17. UI 實戰篇 - 音樂播放器
kjj6198
0
150
Other Decks in Programming
See All in Programming
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
150
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
1.6k
Kotlinize Is Not Just Converting to Kotlin
chigichan24
1
200
Railsバージョンを4倍にした話
optim
0
810
SFCで実現する病院・医療システムの動的組み立て式UI
koukimiura
1
130
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
230
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
1.2k
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
12
10k
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
120
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
190
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
380
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
7k
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
The untapped power of vector embeddings
frankvandijk
2
2k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
ラッコキーワード サービス紹介資料
rakko
5
5.5M
The SEO Collaboration Effect
kristinabergwall1
1
600
Between Models and Reality
mayunak
4
520
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Faster Mobile Websites
deanohume
310
32k
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