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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
Nuxt Server Components
wattanx
0
260
YJITとZJITにはイカなる違いがあるのか?
nakiym
0
130
Rethinking API Platform Filters
vinceamstoutz
0
11k
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
140
PHPで TLSのプロトコルを実装してみる
higaki_program
0
740
アーキテクチャモダナイゼーションとは何か
nwiizo
17
4.6k
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
340
ファインチューニングせずメインコンペを解く方法
pokutuna
0
280
Laravel Nightwatchの裏側 - Laravel公式Observabilityツールを支える設計と実装
avosalmon
1
320
KagglerがMixSeekを触ってみた
morim
0
370
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
290
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
550
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
220
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
410
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
96
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
400
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
SEO for Brand Visibility & Recognition
aleyda
0
4.4k
WCS-LA-2024
lcolladotor
0
520
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
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