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
jQuery_lesson01
Search
kanekenl
October 11, 2017
Programming
0
37
jQuery_lesson01
kanekenl
October 11, 2017
Tweet
Share
More Decks by kanekenl
See All by kanekenl
圭のお別れ会
kanekenl
0
21
弾幕JS.pdf
kanekenl
0
21
エンジニアからみるデザイナーの凄さ
kanekenl
0
410
爆速コーディング〜Sass入門〜
kanekenl
0
110
Other Decks in Programming
See All in Programming
問題の見方を変える「システム思考」超入門
panda_program
0
270
AI POSにおけるLLM Observability基盤の導入 ― サイバーエージェントDXインターン成果報告
hekuchan
0
640
MCPサーバー「モディフィウス」で変更容易性の向上をスケールする / modifius
minodriven
8
1.5k
CSC509 Lecture 11
javiergs
PRO
0
310
組織もソフトウェアも難しく考えない、もっとシンプルな考え方で設計する #phpconfuk
o0h
PRO
10
4.4k
チーム開発の “地ならし"
konifar
7
4.9k
All(?) About Point Sets
hole
0
160
flutter_kaigi_2025.pdf
kyoheig3
1
330
SUZURIの規約違反チェックにおけるクリエイタフィードバックの試⾏錯誤/Trial and Error in Creator Feedback for SUZURI's Terms of Service Violation Checks
ae14watanabe
1
150
TVerのWeb内製化 - 開発スピードと品質を両立させるまでの道のり
techtver
PRO
3
1.1k
Designing Repeatable Edits: The Architecture of . in Vim
satorunooshie
0
390
オフライン対応!Flutterアプリに全文検索エンジンを実装する @FlutterKaigi2025
itsmedreamwalker
2
210
Featured
See All Featured
Fireside Chat
paigeccino
41
3.7k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1k
Thoughts on Productivity
jonyablonski
73
4.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
What's in a price? How to price your products and services
michaelherold
246
12k
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Done Done
chrislema
186
16k
How to Ace a Technical Interview
jacobian
280
24k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Building Adaptive Systems
keathley
44
2.8k
Transcript
第1回 jQuery 勉強ձ
ΞδΣϯμ ɾjQueryͷ素晴Β͠͞ ɾ基本的ͳ書͖方 ɾ࣮際ʹ手Λ動͔͢
逆ʹ今日話͞ͳ͍͜ͱ ɾjQueryͷμϝͳͱ͜Ζ ɾ他ͷJSϥΠϒϥϦʹ͍ͭͯ ɾjQueryͷൃ展的ͳ͜ͱ
jQueryͷ素晴Β͠͞
jQueryͷ素晴Β͠͞ ɾJavaScript͕΄Μͷ行Ͱ書͚ͯ͠·͏! ɾJavaScriptʹ比ͯΔ͔ʹΘ͔Γ͍͢。 ɾ勉強ͷ障壁͕少ͳ͍
基本的ͳ書͖方
基本的ͳ書͖方
ʓʓͷʓʓΛͲ͏͢Δ͔ ϙΠϯτ
۩ମྫ
ʓʓͷʓʓΛͲ͏͢Δ͔ ʓʓͷͷ෦
ʓʓͷʓʓΛͲ͏͢Δ͔ ʓʓΛͷ෦
ʓʓͷʓʓΛͲ͏͢Δ͔ Ͳ͏͢Δ͔ͷ෦
GPPͷ$44ΛDPMPSCMVFʹ͢Δ
None
ͨͬͨ͜Ε͚ͩ
早速、DEMOͯ͠Έ·͠ΐ͏
環境準備
ᶃjquery_lesson01ϑΥϧμ作成 ᶄͦͷ中ʹindex.html作成 ᶅjQueryμϯϩʔυͨ͠ͷΛ ϑΥϧμʹ入Ε·͠ΐ͏
μϯϩʔυ
index.htmlͷ雛形
ϒϥβͰ開͖·͠ΐ͏
準備完了
容、 id=“bar”ͷ背景ͷ色Λ 赤色(red)ʹม͑Δ
完成ਤ
DEMO id=“bar”ͷ背景ͷ色Λ 赤色(red)ʹม͑Δ
࣍
id=“foo”ͷ要素ΛΫϦοΫͨ͠Β foo要素Λ削除͢Δ
ɾ.on()ϝιου ϙΠϯτ ɾ.remove()ϝιου
ɾ.on(Πϕϯτ, ʓʓΛ͢Δ) ϙΠϯτ ɾ.remove()要素Λ消͢
ΫϦοΫͨ͠Β ԿΛ͢Δ͔ ͜͜ͰGPPΛࢦ͢
ΫϦοΫͨ͠Β 文字色Λʹ͢Δ
DEMO
͋ͭ·ΔͷίʔσΟϯά規約Ͱ Ͳ͜ʹ書͘͜ͱ͕ 正͍͔͠Θ͔Γ·͔͢?
</head>ͷ直前
͜Εͩͱ要素͕ಡΈࠐ·ΕΔ前ʹ jQueryͷ࣮行͕͞Εͯ͠·͏ͷͰ ͏·͘動͔ͳ͍
jQuery(function($) { ͜͜ʹ書͘ }) 全部要素ΛಡΜͩ後ʹ࣮行͢Δ
None
ಈ͔ͳ͍ͱࢥͬͨΒ ͙͢ʹ σΟϕϩούʔπʔϧˠίϯιʔϧΛݟΔ͜ͱ
·ͱΊ ɾʓʓͷʓʓΛͲ͏͢Δ͔ ɾಈ͔ͳ͔ͬͨΒ·ͣ ίϯιʔϧΛ։͘͜ͱ