Submit Search
jQuery入門
5 likes
11,608 views
Tomo Fujita
1 of 69
Download now
Downloaded 21 times
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
More Related Content
PDF
Javascript and jQuery for Mobile
Ivano Malavolta
PDF
Jquery Framework
Luiz Carlos Chaves
DOCX
Documentacion edderson callpa_ortiz
Edderson J. Ortiz
PDF
Sis quiz
Clesio Veloso
TXT
Miniray.php
maeeeng69
PPTX
咩星征服計劃 用 Js 征服地球 Part III
羊 小咩 (lamb-mei)
PDF
Feeds. использование и создание плагинов. Feeds API
Alex S
PDF
Working With Ajax Frameworks
Jonathan Snook
Javascript and jQuery for Mobile
Ivano Malavolta
Jquery Framework
Luiz Carlos Chaves
Documentacion edderson callpa_ortiz
Edderson J. Ortiz
Sis quiz
Clesio Veloso
Miniray.php
maeeeng69
咩星征服計劃 用 Js 征服地球 Part III
羊 小咩 (lamb-mei)
Feeds. использование и создание плагинов. Feeds API
Alex S
Working With Ajax Frameworks
Jonathan Snook
What's hot
(19)
TXT
New text document (2) 2
raj lex
TXT
Blogger template-squeeze-page-angelogrande
angelogrande782
PPTX
10 Programación Web con .NET y C#
guidotic
PDF
Symfony2でMongoDBと仲良くする方法
Koji Iwazaki
PPTX
Asp .net Jquery
umesh patil
TXT
Index1
grateful7
DOCX
Php codigos interfaces fredy guzman cusihunca
Tigger_Fred
PDF
Drupal Cms Prezentace
Tomáš Kafka
TXT
With enter
Ani Mikaelyan
PDF
jQuery for beginners
Arulmurugan Rajaraman
PDF
Intro to jQuery UI
appendTo
PDF
UI実装におけるコーディングあれこれ
Hiromu Hasegawa
PDF
jQueryチュートリアル
Tomohiro MITSUMUNE
DOCX
Un juego creado en php
Erwin Lobo
PDF
โปรแกรมที่มากับโปรแกรม Microsoft Windows 7
เทวัญ ภูพานทอง
KEY
JS for Rails developers
Timur Vafin
PDF
Як досвід компанії перетворився на фреймворк
Shtrih Sruleg
DOCX
Dennis zapana perez
dennis_elvis
PDF
Introducción a Bolt
Asier Marqués
New text document (2) 2
raj lex
Blogger template-squeeze-page-angelogrande
angelogrande782
10 Programación Web con .NET y C#
guidotic
Symfony2でMongoDBと仲良くする方法
Koji Iwazaki
Asp .net Jquery
umesh patil
Index1
grateful7
Php codigos interfaces fredy guzman cusihunca
Tigger_Fred
Drupal Cms Prezentace
Tomáš Kafka
With enter
Ani Mikaelyan
jQuery for beginners
Arulmurugan Rajaraman
Intro to jQuery UI
appendTo
UI実装におけるコーディングあれこれ
Hiromu Hasegawa
jQueryチュートリアル
Tomohiro MITSUMUNE
Un juego creado en php
Erwin Lobo
โปรแกรมที่มากับโปรแกรม Microsoft Windows 7
เทวัญ ภูพานทอง
JS for Rails developers
Timur Vafin
Як досвід компанії перетворився на фреймворк
Shtrih Sruleg
Dennis zapana perez
dennis_elvis
Introducción a Bolt
Asier Marqués
Ad
Viewers also liked
(14)
PPT
第6回天下一武道会
tamuratetsuya
PDF
【AWS Summit2013】チームラボ流クラウドスピードクッキング~この講演中にゼロからサービス一個立ちあげます~
Keisuke Kadoyama
PPTX
2011年11月 JAWS-UG「上司を説得してAWSを使わせる3つのポイント」
Serverworks Co.,Ltd.
PDF
クラウドとAWSの説明
真吾 吉田
PDF
知っておいて損はない AWS法務関連
Kieko Sakurai
PDF
Linux Performance Tools
Brendan Gregg
PDF
SAP on AWS 実際の導入例と導入効果
Amazon Web Services Japan
PPTX
超入門クラウド&AWS
Hiroyasu Yamada
PDF
SAP on AWS紹介資料 - Dec, 2014
Matsumoto Hiroki
PDF
20130124_アプリ分析&解析手法
Taiichirou Shibuya
PDF
これでAWSマスター!? 初心者向けAWS簡単講座
Serverworks Co.,Ltd.
PDF
セキュリティを捉えてクラウドを使うためのポイント
Yasuhiro Araki, Ph.D
PDF
いまさら聞けないAWSクラウド - Java Festa 2013
SORACOM, INC
PDF
20140628_jaws-ug_クラウド女子会_HPC科あゆみ先生 #jawsug
Ayumi Tada
第6回天下一武道会
tamuratetsuya
【AWS Summit2013】チームラボ流クラウドスピードクッキング~この講演中にゼロからサービス一個立ちあげます~
Keisuke Kadoyama
2011年11月 JAWS-UG「上司を説得してAWSを使わせる3つのポイント」
Serverworks Co.,Ltd.
クラウドとAWSの説明
真吾 吉田
知っておいて損はない AWS法務関連
Kieko Sakurai
Linux Performance Tools
Brendan Gregg
SAP on AWS 実際の導入例と導入効果
Amazon Web Services Japan
超入門クラウド&AWS
Hiroyasu Yamada
SAP on AWS紹介資料 - Dec, 2014
Matsumoto Hiroki
20130124_アプリ分析&解析手法
Taiichirou Shibuya
これでAWSマスター!? 初心者向けAWS簡単講座
Serverworks Co.,Ltd.
セキュリティを捉えてクラウドを使うためのポイント
Yasuhiro Araki, Ph.D
いまさら聞けないAWSクラウド - Java Festa 2013
SORACOM, INC
20140628_jaws-ug_クラウド女子会_HPC科あゆみ先生 #jawsug
Ayumi Tada
Ad
jQuery入門
1.
jQuery
Copyright © 2005-2011 JUSTPLAYER Co.,Ltd. All Rights Reserved.
2.
• jQuery • jQuery • •
3.
jQuery
4.
jQuery 1.
MIT 2. CSS 3. UI 4. • 30kb • javaScript ( )
5.
jQuery <head> … <script src=“jquery-1.6.2.min.js” type=“text/javascript”></script> … </head> •
$ • jQuery $ (※$ )
6.
jQuery •
head • jQuery <head> … <script src="jquery-1.6.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ }); </script> … </head>
7.
jQuery
8.
• javaScript •
DIV
9.
• javaScript $(document).ready(function(){
$("#btn_hoge").click(function(){ $("#fuga").show(); }); });
10.
• javaScript $(document).ready(function(){
$("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge
11.
• javaScript $(document).ready(function(){
$("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge
12.
• javaScript $(document).ready(function(){
$("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge fuga
13.
• javaScript $(document).ready(function(){
$("#btn_hoge").click(function(){ $("#fuga").show(); }); }); hoge fuga
14.
(Selectors)
• ○○ CSS jQuery $(“#hoge”) id=“hoge” $(“.hoge”) class=“hoge” $(“p”) <p> $(“p.hoge”) <p class=“hoge”> $(“#hoge p”) id=“hoge” <p> $(“#hoge, #fuga”) id=“hoge” id=”fuga”
15.
(Events)
• javaScript onClick onMouseOver on click dblclick focus keydown mouseover change ready
16.
(Manipulation,Attributes,CSS,Effects)
• CSS append $(‘#hoge’).append(‘<p> </p>’); remove $(‘#hoge’).remove(); attr $(‘#image’).attr(‘src’, ‘/images/picture.jpg’); removeAttr $(‘.check’).removeAttr(‘checked’); CSS css $(‘.style).css(‘color’, ‘#ff0000’); show $(‘#hoge’).show(); hide $(‘#hoge’).hide(); fadeIn $(‘#hoge’).fadeIn(); fadeOut $(‘#hoge’).fadeOut(); toggle $(‘#hoge’).toggle();
17.
•
click $("#btn_hoge").click( function(){ $("#fuga").show(); } );
18.
•
click $("#btn_hoge").click( function(){ $("#fuga").show(); } );
19.
•
click $("#btn_hoge").click( );
20.
•
click $("#btn_hoge").click( ); function(){ $("#fuga").show(); }
21.
•
click $("#btn_hoge").click( ); function(){ function showFuga(){ $("#fuga").show(); $("#fuga").show(); } }
22.
• javaScript •
// "ABCDEFG".slice(2, 4); // document.write(" ");
23.
• javaScript •
// "ABCDEFG".slice(2, 4); // document.write(" "); // $("#btn_hoge").click( function(){ $("#fuga").show(); } );
24.
HTML •
HTML <input id=”hoge” type=”button” onClick=”( )” /> javaScript js
25.
(Selectors)
(Events) (Manipulation,A ttributes,CSS,Eff ects)
27.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } );
28.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
29.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
30.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1
31.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1
32.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1 fuga2
33.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga1 fuga2 500
34.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge fuga2 500
35.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge 500
36.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge 500
37.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
38.
•
$("#div_hoge").find(‘.btn_hoge’).click( function(){ $("#fuga1").show(‘slow’); $("#fuga2").hide(500); } ); id=”div_hoge” btn_hoge
39.
find •
$("#div_hoge").find(‘.btn_hoge’) <div id=”div_hoge”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.text” type=”text” value=” ” /> </div> <div id=”div_fuga”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> </div>
40.
find •
$("#div_hoge").find(‘.btn_hoge’) <div id=”div_hoge”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.text” type=”text” value=” ” /> </div> <div id=”div_fuga”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> </div>
41.
find •
$("#div_hoge").find(‘.btn_hoge’) <div id=”div_hoge”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.text” type=”text” value=” ” /> </div> <div id=”div_fuga”> <input class=”.btn_hoge” type=”button” value=” ” /> <input class=”.btn_hoge” type=”button” value=” ” /> </div>
42.
show
hide • $("#fuga1").fadeIn(‘slow’); $("#fuga2").fadeOut(500); slow normal fast 500 0.5 ( ) 2000 2
44.
jQuery •
… $(document).ready( function(){ } );
45.
jQuery •
… $(document).ready( function(){ } ); document
46.
jQuery •
… $(document).ready( function(){ } ); document
47.
jQuery •
… $(document).ready( function(){ } ); document
48.
document $(document).ready( function(){ } ); •
document DOM • DOM XML HTML form input
49.
javaScript
DOM //1 document.form[0].elements[0] //1 document.form[0].elements[0].value // id hoge_btn document.getElementByID(“hoge_btn”)
50.
HTML DOM
document <html> <head> <body> <title> <div> <form> <input>
51.
HTML DOM
document <html> <head> <body> <title> <div> <form> <input>
52.
$() $(“hoge_btn”)
← $(document) ←DOM $() DOM jQuery
53.
jQuery
id=”hoge_btn” jQuery “hoge_btn” DOM (1) (2) (3) DOM jQuery
54.
document
jQuery DOM (1) (2) jQuery DOM
55.
jQuery
DOM (“#fuga”)get(0) (“#fuga”) id=”fuga” jQuery DOM (“.btn_hoge”)get(0) class=”btn_hoge” 1 DOM (“.btn_hoge”) jQuery class=”btn_hoge” (“.btn_hoge”)get(1) 2 DOM
56.
ready
• • $(document).ready( function(){ } ); ready
57.
$(document).ready( function(){
} );
58.
$(document).ready <head> <script type="text/javascript">
$(“#fuga”).show(); </script> </head>
59.
$(document).ready <head> <script type="text/javascript">
$(“#fuga”).show(); #fuga </script> </head> (1)
60.
$(document).ready <head> <script type="text/javascript">
$(“#fuga”).show(); #fuga </script> </head> (1) HTML <head> (2) …
61.
$(document).ready <head> <script type="text/javascript">
$(“#fuga”).show(); #fuga </script> </head> (1) <body> <div id=”fuga”> <p> … HTML <head> (2) </p> </div> … … </body> </html>
62.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
$(“#fuga”).show(); } ); </script> </head> HTML <head>
63.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
document $(“#fuga”).show(); } ); </script> (1) </head> HTML <head>
64.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
$(“#fuga”).show(); } ); </script> </head> HTML <head>
65.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
$(“#fuga”).show(); } ); </script> </head>
66.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
$(“#fuga”).show(); } ); </script> </head> <body> <div id=”fuga”> <p> … </p> </div> … </body> </html>
67.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
$(“#fuga”).show(); } ); </script> </head> <body> <div id=”fuga”> <p> … </p> </div> (2) … </body> </html>
68.
$(document).ready <head> <script type="text/javascript"> $(document).ready( function(){
#fuga $(“#fuga”).show(); } ); </script> (3) </head> <body> <div id=”fuga”> <p> … </p> </div> (2) … </body> </html>
69.
jQuery
Editor's Notes
#2:
\n
#3:
\n
#4:
\n
#5:
\n
#6:
\n
#7:
\n
#8:
\n
#9:
\n
#10:
\n
#11:
\n
#12:
\n
#13:
\n
#14:
\n
#15:
\n
#16:
\n
#17:
\n
#18:
\n
#19:
\n
#20:
\n
#21:
\n
#22:
\n
#23:
\n
#24:
\n
#25:
\n
#26:
\n
#27:
\n
#28:
\n
#29:
\n
#30:
\n
#31:
\n
#32:
\n
#33:
\n
#34:
\n
#35:
\n
#36:
\n
#37:
\n
#38:
\n
#39:
\n
#40:
\n
#41:
\n
#42:
\n
#43:
\n
#44:
\n
#45:
\n
#46:
\n
#47:
\n
#48:
\n
#49:
\n
#50:
\n
#51:
\n
#52:
\n
#53:
\n
#54:
\n
#55:
\n
#56:
\n
#57:
\n
#58:
\n
#59:
\n
#60:
\n
#61:
\n
Download