Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Javascript_基礎二.pdf
Search
darrenyaoyaoyao
October 27, 2020
Programming
130
0
Share
Javascript_基礎二.pdf
darrenyaoyaoyao
October 27, 2020
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
60
Pug.pdf
darrenyaoyaoyao
0
75
Sass.pdf
darrenyaoyaoyao
0
58
jquery.pdf
darrenyaoyaoyao
1
79
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
61
bootstrap.pdf
darrenyaoyaoyao
1
81
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
95
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
60
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
38
Other Decks in Programming
See All in Programming
テレメトリーシグナルが導くパフォーマンス最適化 / Performance Optimization Driven by Telemetry Signals
seike460
PRO
2
220
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
230
AIエージェントで業務改善してみた
taku271
0
500
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
140
Go_College_最終発表資料__外部公開用_.pdf
xe_pc23
0
140
L’IA au service des devs : Anatomie d'un assistant de Code Review
toham
0
220
Coding at the Speed of Thought: The New Era of Symfony Docker
dunglas
0
4.7k
「速くなった気がする」をデータで疑う
senleaf24
0
150
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
720
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
440
おれのAgentic Coding 2026/03
tsukasagr
1
140
ハンズオンで学ぶクラウドネイティブ
tatsukiminami
0
110
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
430
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
KATA
mclloyd
PRO
35
15k
Designing for Timeless Needs
cassininazir
0
190
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
140
Typedesign – Prime Four
hannesfritz
42
3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Designing for Performance
lara
611
70k
Statistics for Hackers
jakevdp
799
230k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Transcript
Javascript 基礎⼆ 控制網⾴的基礎
今⽇⽬標
for 迴圈 for (var i = 0 ; i <
5 ; i++) { … }
for ( 語法⼀ ; 語法⼆ ; 語法三) { … }
語法⼀ : 初始條件 語法⼆ : 結束條件 語法三 : 每次回圈都要執⾏的程式
for 迴圈其實是程式碼的縮寫 for (var i = 0 ; i <
5 ; i++) { console.log(“Hello”) } console.log(“Hello”) console.log(“Hello”) console.log(“Hello”) console.log(“Hello”) console.log(“Hello”)
function 函式 function () { … return XXX; } 封裝常⽤的程式碼
array 陣列 var a = [“12”, “23”, “4”] a[0] =
“12” a[1] = “23” a[2] = “4”
array 陣列常⽤⼦函式 var a = [“12”, “23”, “4”] a.length //
指 a 的長度 a.push(“56”) // 在尾巴新增內容
object 物件 var david = { age: 12, weight: 70
} david.age = 12 david.weight = 70
object 物件 var david = { age: 12, weight: 70
} david.age = 12 david.weight = 70
object 物件 var david = { age: 12, weight: 70
} 我們會稱 age 為 key 12 為 value
object 物件 var david = { age: 12, weight: 70
} key 可以為任意英⽂字或字串 value 可以為任何型態 包括 function, arrary, object