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
36
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
AIでLINEスタンプを作ってみた
eycjur
1
230
How Android Uses Data Structures Behind The Scenes
l2hyunwoo
0
470
Ruby×iOSアプリ開発 ~共に歩んだエコシステムの物語~
temoki
0
340
Testing Trophyは叫ばない
toms74209200
0
890
Improving my own Ruby thereafter
sisshiki1969
1
160
go test -json そして testing.T.Attr / Kyoto.go #63
utgwkk
3
310
Compose Multiplatform × AI で作る、次世代アプリ開発支援ツールの設計と実装
thagikura
0
170
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
120
プロポーザル駆動学習 / Proposal-Driven Learning
mackey0225
2
1.3k
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
250
MCPでVibe Working。そして、結局はContext Eng(略)/ Working with Vibe on MCP And Context Eng
rkaga
5
2.3k
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Docker and Python
trallard
46
3.6k
How to train your dragon (web standard)
notwaldorf
96
6.2k
The Pragmatic Product Professional
lauravandoore
36
6.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
850
Into the Great Unknown - MozCon
thekraken
40
2k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Context Engineering - Making Every Token Count
addyosmani
3
55
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
113
20k
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
ಈ͔ͳ͍ͱࢥͬͨΒ ͙͢ʹ σΟϕϩούʔπʔϧˠίϯιʔϧΛݟΔ͜ͱ
·ͱΊ ɾʓʓͷʓʓΛͲ͏͢Δ͔ ɾಈ͔ͳ͔ͬͨΒ·ͣ ίϯιʔϧΛ։͘͜ͱ