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
JavaScript Practices
Search
Ryan Chung
May 22, 2020
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JavaScript Practices
Ryan Chung
May 22, 2020
Transcript
13 slides
1 JavaScript 補充練習
2 常見滑鼠/鍵盤事件 事件 描述 onclick 點擊 ondblclick 按兩下 onmousedown 在該元件上按下滑鼠鍵
onmousemove 在該元件上移動滑鼠 onmouseover 滑鼠進入該元件範圍 onmouseout 滑鼠離開該元件範圍 onmouseup 在該元件上釋放滑鼠鍵 事件 描述 onkeydown 實體鍵盤被按下 onkeypress 有字元被輸入 onkeyup 實體鍵盤被放開
3 框架/物件事件 事件 描述 onload 檔、物件被載入 onscroll 文件捲動 onabort 取消載入
onerror 載入錯誤 onresize 大小被改變 onunload 離開該頁面、進入新頁面、重新整理
4 表單事件 事件 描述 onblur 用戶離開聚焦在該項目 onchange 內容被改變(選項勾選、下拉選單…) onfocus 用戶聚焦在該項目
onreset 恢復預設資料 onselect 選取了一些文字 onsubmit 送出表單
5 練習:小人物回家
6 index.html
7 style.css
8 main.js
9 計時器 • setTimeout( ):特定時間之後做什麼事情(一次) • clearTimeout( ):解除setTimeout • setInterval(
):每隔多少時間之後做什麼事情(反復) • clearInterval( ):解除setInterval
10 練習:密碼鎖炸彈
11 index.html
12 style.css
13 main.js
More Decks by Ryan Chung
See All by Ryan Chung
MovieBot Development
ryan403
0
350
Design Voice-First Games for Alexa
ryan403
0
100
AI Teaching Talk
ryan403
0
170
Cognitive Service
ryan403
0
130
jQuery & API Practices
ryan403
0
180
CSS Practices
ryan403
1
200
Web Programming - Lesson 6
ryan403
1
700
Web Programming - Lesson 7
ryan403
1
700
Web Programming - Lesson 5
ryan403
1
490
Other Decks in Technology
See All in Technology
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
1.1k
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
110
テスト自動化の先、テスト自律化に向けて
mineo_matsuya
2
200
FPGAでアクティブセンシングがやりたくてカメラモジュールを自作した話
ryuz88
0
130
信頼性を犠牲にせず、PR マージからデプロイまで人の介入を完全にゼロにするまでの道のり
knwoop
4
2.2k
メディアアートを〈拡張〉する——器官学と個体化論を手がかりに
_kotobuki_
1
380
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.4k
リリースしたで終わらない。 観測できるフロントエンド開発
yamakenji24
4
1.6k
フロントエンドのテストカバレッジは 100%強制がいい
bengo4com
7
3.8k
AIフレンドリーなGenerative UIをJSXで
uhyo
2
840
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
290
AI-DLCでソフトウェア開発の速さは 上がったのか?
rfdnxbro
0
180
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Being A Developer After 40
akosma
PRO
92
590k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.5k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Raft: Consensus for Rubyists
vanstee
143
7.9k
A designer walks into a library…
pauljervisheath
211
25k
Balancing Empowerment & Direction
lara
6
1.4k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320
Done Done
chrislema
187
17k
The Cost Of JavaScript in 2023
addyosmani
56
10k