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
110
Javascript_基礎二.pdf
darrenyaoyaoyao
October 27, 2020
Tweet
Share
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
49
Pug.pdf
darrenyaoyaoyao
0
54
Sass.pdf
darrenyaoyaoyao
0
50
jquery.pdf
darrenyaoyaoyao
1
56
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
44
bootstrap.pdf
darrenyaoyaoyao
1
68
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
80
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
48
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
28
Other Decks in Programming
See All in Programming
Optimizing JRuby 10
headius
0
570
Browser and UI #2 HTML/ARIA
ken7253
2
170
AI時代の開発者評価について
ayumuu
0
230
複雑なフォームの jotai 設計 / Designing jotai(state) for Complex Forms #layerx_frontend
izumin5210
6
1.5k
実践Webフロントパフォーマンスチューニング
cp20
45
10k
開発者フレンドリーで顧客も満足?Platformの秘密
algoartis
0
160
ComposeでのPicture in Picture
takathemax
0
130
Qiita Bash
mercury_dev0517
2
220
ASP.NETアプリケーションのモダナイゼーションについて
tomokusaba
0
240
Serving TUIs over SSH with Go
caarlos0
0
570
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
110
On-the-fly Suggestions of Rewriting Method Deprecations
ohbarye
1
4.8k
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Writing Fast Ruby
sferik
628
61k
Fireside Chat
paigeccino
37
3.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.3k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
KATA
mclloyd
29
14k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
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