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
0
120
Javascript_基礎二.pdf
darrenyaoyaoyao
October 27, 2020
Tweet
Share
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
52
Pug.pdf
darrenyaoyaoyao
0
59
Sass.pdf
darrenyaoyaoyao
0
52
jquery.pdf
darrenyaoyaoyao
1
59
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
49
bootstrap.pdf
darrenyaoyaoyao
1
74
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
87
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
51
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
31
Other Decks in Programming
See All in Programming
Swift Concurrency 年表クイズ
omochi
3
220
When Dependencies Fail: Building Antifragile Applications in a Fragile World
selcukusta
0
120
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
4
18k
CSC509 Lecture 10
javiergs
PRO
0
160
pnpm に provenance のダウングレード を検出する PR を出してみた
ryo_manba
1
180
AI駆動開発カンファレンスAutumn2025 _AI駆動開発にはAI駆動品質保証
autifyhq
0
120
CSC509 Lecture 11
javiergs
PRO
0
280
エンジニアに事業やプロダクトを理解してもらうためにやってること
murabayashi
0
120
AI Agent 時代的開發者生存指南
eddie
4
2.3k
Module Proxyのマニアックな話 / Niche Topics in Module Proxy
kuro_kurorrr
0
1.3k
三者三様 宣言的UI
kkagurazaka
0
340
NIKKEI Tech Talk#38
cipepser
0
360
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
116
20k
Git: the NoSQL Database
bkeepers
PRO
431
66k
How to train your dragon (web standard)
notwaldorf
97
6.3k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Designing Experiences People Love
moore
142
24k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
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