Let's jQuery - ã²ã¨ãã§ã§ãããã
å é±åææ¥ã«ãWCAFのイベントでセッションを担当ãã¾ããã
ã¿ã¼ã²ããã¯Webãã¶ã¤ãã¼ã¨ãã¼ã¯ã¢ããã¨ã³ã¸ãã¢ãªã®ã§ãæ¯è¼çç°¡åãªå 容ã§ãã
ã»ãã·ã§ã³å 容ããã®ã¾ã¾å çãã¦è¨äºã«ãããã¨ã«ãã¾ããã§ã¯ã以ä¸ããã®å 容ã
jQueryã®æµè¡
jQueryã¯2005å¹´ã«ç»å ´å¾ãç¬ãéã«åºã¾ã£ããJavaScriptã©ã¤ãã©ãªã®éã§ãã
ã²ã¨ã¤ãçµ±è¨æ å ±ãè¦ã¤ããã®ã§ç´¹ä»ãã¾ãã
403 - Forbidden: Access is denied.
ãã®è¨äºã®ä¸ã«ããæãç·ã°ã©ããã覧ãã ãããã°ã©ãã«ãã¤ã³ãããå³ç«¯ã«ç§»åããã¨ãç·è²ã®ç·ä¸ã«37.71%ã¨ããå¹ãåºãã表示ããã¾ãã
ãã®ã°ã©ãã¯Top10,000ãµã¤ãä¸ãjQueryãæ¡ç¨ãã¦ãããµã¤ãã®å²åã表ãã¦ãã¦ãTop10,000ãµã¤ãä¸ã40%è¿ããjQueryãæ¡ç¨ãã¦ããã¨ãããã¨ã«ãªãã¾ããï¼çµ±è¨çµæãä¿¡ç¨ã§ãããã©ããã¯å®ãã§ã¯ããã¾ãããï¼
ç°¡åã«èª¿ã¹ãéãã§ããTwitter, Amazon, Wikipedia, W3Cçãæåä¼æ¥ã®å¤ããæ¡ç¨ãã¦ãã¾ãã
W3Cã«é¢ãã¦ã¯ãDOMãè¨è¨ããã®ã¯ããªãæ¹ã§ã¯ï¼ï¼ã¨ããããã³ããããããªãã¨ããã§ãã
ã§ã¯ãªãããã§ãã
ã¨ãããã¨ã§ãç¥ããªãã§ã¯æ¸ã¾ãããªããã§ã¼ãºã«å ¥ãã¤ã¤ããã®ã§ãä»æ¥ã¯jQueryã®éç¿ããã¾ãããã
jQueryã®èªã¿è¾¼ã¿
jQueryã¯ä»¥ä¸ã®2種é¡ã®æ¹æ³ã§èªã¿è¾¼ããã¨ãã§ãã¾ãã
- CDNçµç±ã§èªã¿è¾¼ã
- jQueryããã¦ã³ãã¼ããã¦èªã¿è¾¼ã
CDNçµç±ã§èªã¿è¾¼ã
jQueryã®å ¬å¼ãµã¤ãã«ãjQueryをホスティングしているCDNの一覧ãè¼ã£ã¦ãã¾ãã
- jQueryã®CDN
- http://code.jquery.com/jquery-1.4.3.min.js
- Googleã®CDN
- http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js
- Microsoftã®CDN
- http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js
以ä¸ã®URLãscriptè¦ç´ ã®srcå±æ§ã§æå®ãããã¨ã§ãjQueryãèªã¿è¾¼ãã¾ãã
jQueryããã¦ã³ãã¼ããã¦èªã¿è¾¼ã
jQueryã®å ¬å¼ãµã¤ããããMinified版ãæ¢ããjquery.jsã¨ããååã«ãªãã¼ã ãã¦ãå ¬éãããä»»æã®ãã£ã¬ã¯ããªã«ä¿åãã¾ãã
ãã®ãã¡ã¤ã«ãscriptè¦ç´ ã®srcå±æ§ã§æå®ãããã¨ã§ãjQueryãèªã¿è¾¼ãã¾ãã
CDNã¨ç´æ¥ãã¦ã³ãã¼ãã®ã©ã¡ãã使ãã¹ãã
Firebugãªã©ã§ãèªã¿è¾¼ã¿é度ã確èªãã¦ã©ãã«ããã決å®ãã¹ãã§ãããå人çã«ã¯Googleã®CDNã使ããã¨ããªã¹ã¹ã¡ãããã§ãã
ä¸çªãã¡ã¸ã£ã¼ã§ããããããã§ã«Googleã®CDNã使ã£ã¦ãããµã¤ããããããããããããã¾ãããGoogleã®CDNçµç±ã§jQueryããã¦ã³ãã¼ãããã¨ã1å¹´éã¯ãã£ãã·ã¥ããjQueryãèªã¿è¾¼ãããããã§ã«ãã®ãããªãµã¤ãã«ã¢ã¯ã»ã¹ãã¦ãã人ã§ããã°ããã©ã¦ã¶ãjQueryããã¦ã³ãã¼ãããå¿ è¦ããªããªãã¾ãã
極端ãªè©±ãjQueryãå©ç¨ãããã¹ã¦ã®ãµã¤ãã»ãµã¼ãã¹ããGoogleã®CDNã使ãã°ããã©ã¦ã¶ãjQueryããã¦ã³ãã¼ãããæ©ä¼ãå§åçã«å°ãªããªããããjQueryãå©ç¨ããã¾ã§ã®æéãç縮ã§ãã¾ãã
CDNã¯Googleã®ã¦ã§ãå ¨ä½ã®é«éåã®ä¸è²«ãªã®ã§ãååãã¦ãããã¨å¹¸ããªçµæãå¾ ã£ã¦ãããããªãããªã¨æå¾ ãã¦ãã¾ããï¼ãã¼ã¸ã§ã³ä¾åçã§ä½¿ããªãå ´åã¯é¤ãï¼
jQueryãªãã¸ã§ã¯ã
jQueryã¯$ã«ãã¹ã¦ã®ã¡ã½ãããããããã£ãå ¥ã£ã¦ãã¾ãã
$ã¯jQueryã®é ¸ããçããç¥ã£ã¦ãã究極é¸åã¨è¨ããã§ãããã
jQueryã®æ¸ãæ¹ï¼è¶ ãã£ããï¼
ãã£ããããã¦ç³ã訳ãªãã§ããã以ä¸ã®ãããªæ¸ãæ¹ã«ãªãããªã¨æãã¾ãã
- $.ã¡ã½ããå(å¼æ°);
- $(ã»ã¬ã¯ã¿).ã¡ã½ããå(å¼æ°);
- $(ã»ã¬ã¯ã¿).ã¤ãã³ãå(function() { /* ãã®ã¤ãã³ãã®æã«å®è¡ãããã³ã¼ããè¨è¿° */});
ãã£ããããã¾ããã©ãã
ãµã³ãã«ã³ã¼ããæ¸ããªããjQueryãå¦ã¶
ã§ã¯ããµã³ãã«ã³ã¼ããæ¸ããªããjQueryãå¦ãã§ã¿ã¾ããããæçµææç©ã¯ãã©ããã»ã©ãããã¼ã*1ã§ãããé çªã«åãçµããã¨ã§ãåºæ¬çãªæ¸ãæ¹ãã½ã¼ã¹ã®è¦ç´ããªã©ãã§ããããã«ãªããã¨ãæå¾ ãã¦ãã¾ãã
ex1. HTMLãã¡ã¤ã«ãç¨æãã
ã¾ãã¯ã以ä¸ã®ãããªHTMLãã¡ã¤ã«ãç¨æãã¾ãããã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> // ããã«jQueryã®ã³ã¼ããæ¸ãã¦ããã¾ãã </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
scriptè¦ç´ ã§jQueryãèªã¿è¾¼ãã§ãã¾ããã¾ãããã®ä¸ã®scriptè¦ç´ ã«jQueryã®ã³ã¼ããæ¸ãã¦ããã¾ãã
ex2. documentã®èªã¿è¾¼ã¿ãå®äºããããã³ã¼ããå®è¡ãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(document).ready(function() { //å®è¡ãããã³ã¼ããããã«å ¥å }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
headè¦ç´ ã«ã³ã¼ããè¨è¿°ããéã¯ãdocumentã®èªã¿è¾¼ã¿å®äºãå¾ ããªããã°ããã¾ããã
$(document).ready(function{ ... });
ã¨è¨è¿°ãããã¨ã§ãdocumentã®èªã¿è¾¼ã¿ãå®äºããç´å¾ãé¢æ°å
ã®å¦çãå®è¡ãããã¨ãã§ããããã«ãªãã¾ãã
ãªãã$(document).ready(function{ ... });
ã¯ã$(function() { ... });
ã¨ããçç¥è¡¨è¨ã使ããããã以ä¸ãã®ããã«è¨è¿°ãã¦ããã¾ãã
ex3. aè¦ç´ ã®ä¸ç·ãæ¶ã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').css('text-decoration', 'none'); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
ã¾ãã¯ãaè¦ç´ ã®ä¸ç·ãæ¶ãã¦ã¿ã¾ãã
$('a')ã¯documentå ¨ä½ã®aè¦ç´ ãæãã¾ããããã«å¯¾ãã¦ãcssã¡ã½ããã§ããããã£ãé©ç¨ãã¾ãã
.css('text-decoration', 'none');ã¯aè¦ç´ ã®text-decorationããããã£ãnoneã«è¨å®ããã¨ããæå³ã«ãªãã¾ããããã§ä¸ç·ãæ¶ãã¾ãã
ex4. aè¦ç´ ã«ããã«è¤æ°ã®ã¹ã¿ã¤ã«ãè¨å®ãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').css({ 'text-decoration': 'none', 'color': 'black', 'font-size': '20px' }); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
è¤æ°ã®ã¹ã¿ã¤ã«ãè¨å®ããå ´åã¯ãæ³¢æ¬å¼§ã®ä¸ã§ãåããããã£ãã«ã³ãã§åºåããå¤ãè¨å®ãã¾ããCSSã£ã½ãã¦ç°¡åã§ããã
ex5. aè¦ç´ ã«mouseoverããæãæåè²ã赤ã«ãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').css({ 'text-decoration': 'none', 'color': 'black', 'font-size': '20px' }); $('a').mouseover(function() { $('a').css('color', 'red'); }); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
次ã«ã¤ãã³ããè¨å®ãã¦ã¿ã¾ãã
$(ã»ã¬ã¯ã¿).ã¤ãã³ãå(function() { ... });
ã§ããã¯ãªãã¯æã¤ãã³ããªã®ã§ã$('a').click(function() { ... });
ã使ãã¾ãã
functionã®ä¸ã§ãaè¦ç´ ã®colorããããã£ãredã«å¤æ´ãã¦ãã¾ãã
ex6. aè¦ç´ ããmouseoutããæãæåè²ãé»ã«ãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').css({ 'text-decoration': 'none', 'color': 'black', 'font-size': '20px' }); $('a').mouseover(function() { $('a').css('color', 'red'); }); $('a').mouseout(function() { $('a').css('color', 'black'); }); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
å ãã¦ãmouseoutã®å¦çã追å ãã¾ããã¤ãã³ãåãéãã ãã§ãå ç¨ä¸ç·ã§ãã
ex7. aè¦ç´ å ¨ä½ã«ã¡ã½ãããé©ç¨ããã®ã§ã¯ãªãã対象ã«ãªãaè¦ç´ ã®ã¿ã«é©ç¨ãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').css({ 'text-decoration': 'none', 'color': 'black', 'font-size': '20px' }); $('a').mouseover(function() { $(this).css('color', 'red'); }); $('a').mouseout(function() { $(this).css('color', 'black'); }); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
å ç¨ã¯ãmouseoverããæãmouseoutããæãå ±ã«aè¦ç´ å ¨ä½ã対象ã¨ãã¦ãã¾ããã
thisã¨ãããã¼ã¯ã¼ãã¯èªåèªèº«ã¨ããæå³ã§ãã$('a')ã¨ããç®æã$(this)ã¨ãããã¨ã«ãã£ã¦ãaè¦ç´ å ¨ä½ã§ã¯ãªããå¦çã®å¯¾è±¡ã«ãªãaè¦ç´ ã®ã¿ã«ã¡ã½ãããé©ç¨ãããã¨ãã§ãã¾ãã
ex8. ã¡ã½ãããã§ã¼ã³ãå©ç¨ãã¦ãè¦ç´ ã®æ¤ç´¢ãæå°éã«æãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').css({ 'text-decoration': 'none', 'color': 'black', 'font-size': '20px' }).mouseover(function() { $(this).css('color', 'red'); }).mouseout(function() { $(this).css('color', 'black'); }); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
å ç¨ã¯ãä½ãã¡ã½ãããã¤ãã³ããè¨å®ãããã³ã«ã$('a')ã¨ããè¨è¿°ããã¦ãã¾ããããããã¯æ¯ådocumentã®ä¸ããaè¦ç´ ãæ¤ç´¢ãããã¨ã«ãªããã¾ãå¹çãããããããã¾ããã
ããã§ãã¡ã½ããããã§ã¼ã³ã®ããã«ã¤ãªãã¦æ¸ããã¡ã½ãããã§ã¼ã³ãå©ç¨ãã¦ãªãã¡ã¯ã¿ãªã³ã°ãã¾ãã
ã¡ã½ããã®çµç«¯ã;ã§çµããããããã®ã¾ã¾æ¬¡ã®ã¡ã½ãããã¤ãªãã¾ãããããããã¨ã§ã次ã®ã¡ã½ããã«ãæåã«é¸æãã$('a')ãå¼ç¶ãã¡ã½ãããå®è¡ãããã¨ãã§ãã¾ãã
ã¡ã½ãããã§ã¼ã³ã¯jQueryã«ç¨æããããå¹çãè¯ãCoolãªä»çµã¿ãªã®ã§ãæ¯éæ´»ç¨ãã¦ã¿ã¦ãã ããã
ex9. CSSã¯JavaScriptã§è¨è¿°ãããCSSã«æ¸ã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <style> a { text-decoration: none; color: black; font-size: 20px; } .over { color: red; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').mouseover(function() { $(this).addClass('over'); }).mouseout(function() { $(this).removeClass('over'); }); }); </script> </head> <body> <ol> <li><a href="http://wcaf.jp">WCAF</a></li> <li><a href="http://jquery.com/">jQuery</a></li> </ol> </body> </html>
ä»ããã§ãããaè¦ç´ ã®åæã¹ã¿ã¤ã«ãããããjQueryã«æ¸ãã®ã¯éå¹çã§æå³ãããã¾ããããããããCSSã«è¨è¿°ãã¦ãã¾ãã¾ããããã¾ããmouseoveræãmouseoutæã®ã¹ã¿ã¤ã«ãclassåãå©ç¨ãã¦CSSã«è¨è¿°ãã¦ãã¾ãã¾ãããã
ex10. é ããã¯ãªãã¯ããã¨aè¦ç´ ãé ããå表示ãã¯ãªãã¯ããã¨aè¦ç´ ã表示ããã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <style> a { text-decoration: none; color: black; font-size: 20px; } .over { color: red; } .showlink { color: #666; display: none; } .hidelink { margin-left: 10px; color: #666; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').mouseover(function() { $(this).addClass('over'); }).mouseout(function() { $(this).removeClass('over'); }); $('.hidelink').click(function() { $(this).hide(); $(this).prev().hide(); $(this).prev().prev().show(); }); $('.showlink').click(function() { $(this).hide(); $(this).next().show(); $(this).next().next().show(); }); }); </script> </head> <body> <ol> <li><span class="showlink">å表示</span><a href="http://wcaf.jp">WCAF</a><span class="hidelink">é ã</span></li> <li><span class="showlink">å表示</span><a href="http://jquery.com/">jQuery</a><span class="hidelink">é ã</span></li> </ol> </body> </html>
å°ããHTMLã®æ§æãå¤åããã®ã§ç¢ºèªãã¾ããããaè¦ç´ ã®åå¾ã«spanè¦ç´ ã追å ããã¦ãã¾ãã
aè¦ç´ ã®åã«ã¯ãå表示ãã¨ããæåãaè¦ç´ ã®å¾ã«ã¯ãé ããã¨ããæåãããã¾ããã¹ã¿ã¤ã«ããããããè¨å®ãã¦ããã®ã§ç¢ºèªãã¦ãã ãããå表示ã¨ããæåã¯ãæåãé表示ã«ãªã£ã¦ãã¾ãã
é ããã¯ãªãã¯ããæã®å¦çã$('.hidelink').click(function() { ... });
ã®ä¸ã«ããã¾ãã
èªåèªèº«ãé ãã¦ãåã®è¦ç´ ï¼aè¦ç´ ï¼ãé ãã¾ããããã«åã®è¦ç´ ï¼å表示ï¼ã¯è¡¨ç¤ºãã¾ãã
åæ§ã«ã$('.showlink').click(function() { ... });
ã®ä¸ã«ã¯ãå表示ãã¯ãªãã¯ããæã®å¦çãæ¸ãã¦ããã¾ãã
ex11. ããã«ãªãã¡ã¯ã¿ãªã³ã°ãã¦è¦æ ããæ´ãã
<!doctype html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Letâs jQuery</title> <style> a { text-decoration: none; color: black; font-size: 20px; } .over { color: red; } .showlink { color: #666; display: none; } .hidelink { margin-left: 10px; color: #666; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script> $(function() { $('a').mouseover(function() { $(this).addClass('over'); }).mouseout(function() { $(this).removeClass('over'); }); $('.hidelink').click(function() { $(this).hide().prev().hide().prev().fadeIn(); // ãå表示ããfadeInãã }).mouseover(function() { $(this).css('cursor', 'pointer'); }); $('.showlink').click(function() { $(this).hide().next().fadeIn().next().fadeIn(); // ãaè¦ç´ ãã¨ãé ãããfadeInãã }).mouseover(function() { $(this).css('cursor', 'pointer'); }); }); </script> </head> <body> <ol> <li><span class="showlink">å表示</span><a href="http://wcaf.jp">WCAF</a><span class="hidelink">é ã</span></li> <li><span class="showlink">å表示</span><a href="http://jquery.com/">jQuery</a><span class="hidelink">é ã</span></li> </ol> </body> </html>
è¤æ°è¡ã«æ¸¡ã£ã¦æ¸ãã¦ããé ãã»å表示ã®ã¯ãªãã¯æã®å¦çããã¡ã½ãããã§ã¼ã³ã§æ¸ãç´ããããã«mouseoveræã®å¦çã追å ãã¦ãã¾ãã
åç´ã«è¡¨ç¤ºããã®ã§ã¯ãªããfadeInã®ã¨ãã§ã¯ãã追å ãã¾ããã
é ãã»å表示ã®æ¸ãspanã«idãæå®ãã¦ãããã«å¯¾ãã¦ã¡ã½ãããé©ç¨ãããã¨ãã§ãã¾ãããããã100å1000åããå ´åã¯é常ã«æéã«ãªãã®ã§ãprevãnextã使ã£ã¦ç¸å¯¾çã«æ¸ããæ¹ããæåã¯ãããã«ããã¦ãçµæçã«ã³ã¼ãéãå°ãªããªã楽ã ã¨æãã¾ãã
ã¡ã½ãããæ¤ç´¢ããæå¼ã
jQueryã®ã¡ã½ããã¯jQueryå ¬å¼ãµã¤ãã®ãªãã¡ã¬ã³ã¹ãã以ä¸ã®jQueryæ¥æ¬èªãªãã¡ã¬ã³ã¹ããæ¢ãã®ãè¯ãã¨æãã¾ãã
ã©ã¡ãã®ãµã¤ããåã¡ã½ãããã«ãã´ãªãã¨ã«åãã¦æ²è¼ãã¦ããã¦ãã¾ãã
ç¹ã«ããã¶ã¤ãã¼ããã¼ã¯ã¢ããã¨ã³ã¸ãã¢ãå©ç¨ããæ©ä¼ãå¤ãã«ãã´ãªãç´¹ä»ãã¾ãã
- Selectors
- CSSã®ã»ã¬ã¯ã¿ã®ããã«ãè¦ç´ éåãé¸æããããã®ã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
- Attributes
- HTMLã®å±æ§ãæä½ããããã®ã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
- Travering
- next, prev, parent, childrenã®ããã«ãè¦ç´ éãè¡ãæ¥ããããã®ã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
- Manipulation
- è¦ç´ ã®æ¿å ¥ãåé¤ãç½®æãªã©ãè¦ç´ ãå¶å¾¡ããããã®ã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
- CSS
- ã¹ã¿ã¤ã«ãå¶å¾¡ããããã®ã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
- Events
- ã¯ãªãã¯ãããã«ã¯ãªãã¯ããã¦ã¹ãªã¼ãã¼ã®ãããªãã¤ãã³ãã®ããªã¬ã¼ã«ãªãã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
- Effects
- fadeIn, slideDownã®ãããªã¨ãã§ã¯ãå¹æã®ã¡ã½ãã群ãæ²è¼ããã¦ãã¾ãã
jQueryã®åãã¨ãã
jQueryã¯ãã©ã°ã¤ã³ã§èªèº«ãæ¡å¼µåºæ¥ãè¨è¨ã«ãããã¨ãåãã¨æãã¾ãã
jQuery UIãjQTouchã®ãããªå¤§ããªãã©ã°ã¤ã³ãããã²ã¨ã¤ã®æ©è½ãå®è£ ããããã®å°ããªãã©ã°ã¤ã³ã¾ã§ãããããã®ãã©ã°ã¤ã³ã第ä¸è ããæä¾ããã¦ãã¾ãã
jQuery公式サイトのプラグインリポジトリããæ¤ç´¢ããããColissã®ãããªå®æçã«ãã©ã°ã¤ã³ã®ç´¹ä»ããã¦ããããã°ãããã©ã°ã¤ã³ã®æ å ±ãå¾ãã¨è¯ãã¨æãã¾ãã
jQueryã®éçºã®éããã¨ãããã®
FirebugãFireQueryãã¤ã³ã¹ãã¼ã«ãããã¨ããããããã¾ãã
ã¾ããjsdo.itã¨ãããµã¤ãã§ãjQueryã使ã£ãã³ã¼ããæ¸ãç·´ç¿ããã¦ã¿ãã®ãè¯ãã¨æãã¾ãã
çµãã
æ¸ãã®ç²ããorz...
ä»åº¦ãã³ãºãªã³ã»ããã¼ãããããªã¼ã¨ãã話ããã¾ããããããããªãã¨ãæ¤è¨ãã¦ãã人ãããããå¼ãã§ãã ããã
WCAFã¯æ°ä½å¶ã«ãªã£ã¦åãã¦ã®ã¤ãã³ããããããã§ãããæ¦ã好è©ã§ããã£ãã§ããä»å¾ããã£ã¨è¯ãã»ãã·ã§ã³ãã§ããããã«ç²¾é²ãããã¨æãã¾ãã
é¢é£ã¨ã³ããªã¼
ãã®å 容ãé£ããã®ã§ããã°ãä¸è¨ã®ã¨ã³ããªã¼ã®è³æã®æ¹ãç°¡åã§ããããã
*1:ã¢ã³ã±ã¼ãã«ããã£ã¨ãã¶ã¤ãã¼ãé£ãã¤ããµã³ãã«ã ã¨è¯ãã£ãã¨æãã¾ãï¼ã¨æ¸ããã¡ããã¾ããorz...