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
94
Javascript_基礎二.pdf
darrenyaoyaoyao
October 27, 2020
Tweet
Share
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
40
Pug.pdf
darrenyaoyaoyao
0
46
Sass.pdf
darrenyaoyaoyao
0
41
jquery.pdf
darrenyaoyaoyao
1
50
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
39
bootstrap.pdf
darrenyaoyaoyao
1
44
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
78
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
46
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
26
Other Decks in Programming
See All in Programming
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
290
SIMD Parallel Programming with the Vector API
josepaumard
0
250
TypeScriptでもLLMアプリケーション開発 / LLM Application In Typescript
rkaga
5
1.3k
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
420
GitHub Actionsの痒いところを埋めるサードパーティーランナー
dora1998
1
240
Documentation testsの恩恵 / Documentation testing benefits
ssssota
1
550
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
74k
2024 コーディング研修
ckazu
2
640
Next.js App Router
quramy
14
2.3k
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
200
仕様と実装で学ぶOpenTelemetry
drumato
2
690
slow types ってなんだろう?
karad
0
210
Featured
See All Featured
Being A Developer After 40
akosma
67
580k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
How STYLIGHT went responsive
nonsquared
92
4.8k
Web Components: a chance to create the future
zenorocha
306
41k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
81
44k
Six Lessons from altMBA
skipperchong
22
3k
Building Your Own Lightsaber
phodgson
100
5.7k
How GitHub (no longer) Works
holman
305
140k
Scaling GitHub
holman
457
140k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Building Adaptive Systems
keathley
32
1.9k
Designing with Data
zakiwarfel
96
4.8k
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