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
KSDG-HTML2WebComponent.pdf
Search
Yu
February 08, 2013
95
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
KSDG-HTML2WebComponent.pdf
Yu
February 08, 2013
Featured
See All Featured
Visualization
eitanlees
153
17k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
A better future with KSS
kneath
240
18k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Music & Morning Musume
bryan
48
7.4k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Speed Design
sergeychernyshev
33
2.2k
Typedesign – Prime Four
hannesfritz
42
3.2k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Transcript
HTML標籤 升級Web元件 Marty
[email protected]
本機工具 git http://git-scm.com/ nodejs http://nodejs.org/ sublime 2 http://www.sublimetext.com/ sublime typescript
plugin https://github.com/raph-amiard/sublime- typescript 2
3 簡報資源 http://goo.gl/MWtTz
Sublime Text 2.0.1 + TypeScript 4
5 http://www.omerfarukcelebi.com/wp-content/uploads/2012/08/css_html_javascript.jpg Web開發一點都不簡單
6 HTML是甚麼?
HTML發展已經超過20個年頭… 7 1991 HTML 1994 HTML2 1996 CSS1 + JavaScript
1997 HTML4 1998 CSS2 2000 XHTML1 2005 AJAX 2009 HTML5
回到HTML的本質與初衷 8
範例 - HTML佈告欄清單 9
HTML- 佈告欄清單 10 View
11 自訂標籤解譯
Step 1: 將View改用自訂標籤顯示 12 View 標籤名稱 (不分大小寫) 自訂標籤 自訂標籤 自訂標籤
自訂標籤 – 封裝 封裝 封裝 封裝Vew
Step 1: 將View改用自訂標籤顯示 13
Step 1: 傳入 ${title} 參數 14
Step 1: 取代innerHTML內容 15
Step 1完成,View變簡單了~ 16
17 Component
Step2: 開發元件邏輯 18 Component
Step2: 綁定gk-xxxx事件 19 Component
Step3: 撰寫應用邏輯 20 應用邏輯 (指定id) AP Logic
GK 21 經由Web元件,簡化開發複雜度,提高重複使用性
案例一 22 http://1101.ezoui.com/home/Demo/3rd/jqpl ot2.html
案例二 23 http://1101.ezoui.com/home/Demo/3rd/Carousel3.html
24 自訂標籤解譯 動態語法綁定
Role defined 有學術氣息一點…
使用GK Mobile 26