ããã¤ããã©ã¼ãã³ã¹JavaScriptããåãæ¢ããã¿ã¤ãã«ã¨ãªã©ã¤ãªã¼æ¬ã£ã¦æã§è³¼å
¥æ±ºå®ã
å
容ã¯ãã®æ§ãªãã®ã«ãªã£ã¦ããã¿ããã§ãã
JavaScriptã®ããã©ã¼ãã³ã¹ã«ãããããã«ããã¯ã解æ¶ãããã¯ããã¯ã¨ã¢ããã¼ãã解説ãã¾ãã
å®è¡æéããã¦ã³ãã¼ãå¦çããã¼ã¸ã®ã©ã¤ããµã¤ã¯ã«ãªã©JavaScriptã®æ§ã ãªé¨åã«å¯¾å¿ããªããã
DOMã¸ã®ã¢ã¯ã»ã¹ããããã¯ã¼ã¯ã®ã¬ã¤ãã³ã·ãJavaScriptã®åæãã¦ã³ãã¼ãã®ããããã³ã°ãªã©ã
é«éãªJavaScriptã¨ã³ã¸ã³ã§ãã£ã¦ãæé©åã§ããªãé¨åããã«ãã¼ãã¦ãã¾ãã
æ¬æ¸ã§è¿°ã¹ããã¦ãããã¯ããã¯ã¨ã¢ããã¼ãã¯ãããã©ã¼ãã³ã¹ãåä¸ããä¸ã§éè¦ã§ããã ãã§ãªãã
ä»å¾ä½ã¬ãã«ãªJavaScriptã®å®è¡æéãç縮ããã¦ããã«ã¤ãã¦ãããã«ãã®éè¦æ§ã¯å¢ãã¦ããã§ãããã
JavaScriptã®æé©åã¯è²ã ãªäººãWebã§æ å ±ãå ¬éããã¦ã¾ããè¯ãæ©ä¼ãªã®ã§ãã®æ¬ã§ä¸éãè¦ãããã¨æãã¾ãã
ãã¤ããã©ã¼ãã³ã¹JavaScript
- ä½è : Nicholas C. Zakas,æ°´éè²´æ
- åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³
- çºå£²æ¥: 2011/03/20
- ã¡ãã£ã¢: 大åæ¬
- è³¼å ¥: 9人 ã¯ãªãã¯: 1,176å
- ãã®ååãå«ãããã° (33件) ãè¦ã
ç®æ¬¡
ã¯ããã«
1ç« ãèªã¿è¾¼ã¿ã¨å®è¡
1.1ãã¹ã¯ãªããã®é ç½®
1.2ãã¹ã¯ãªããã®ã°ã«ã¼ãå
1.3ããã³ããããã³ã°ãªã¹ã¯ãªãã
1.3.1ãã¹ã¯ãªããã®é 延
1.3.2ãåçãªscriptè¦ç´
1.3.3ãXMLHttpRequestã«ããã¹ã¯ãªããã®æ¿å ¥
1.3.4ãæ¨å¥¨ããããã³ããããã³ã°ãã¿ã¼ã³
1.4ãã¾ã¨ã2ç« ããã¼ã¿ã¢ã¯ã»ã¹
2.1ãã¹ã³ã¼ãã®ç®¡ç
2.1.1ãã¹ã³ã¼ããã§ã¼ã³ã¨èå¥åã®è§£æ±º
2.1.2ãèå¥å解決ã®ããã©ã¼ãã³ã¹
2.1.3ãã¹ã³ã¼ããã§ã¼ã³ã®æ¡å¼µ
2.1.4ãåçã¹ã³ã¼ã
2.1.5ãã¯ãã¼ã¸ã£ã¨ã¹ã³ã¼ãã¨ã¡ã¢ãª
2.2ããªãã¸ã§ã¯ãã¡ã³ã
2.2.1ããããã¿ã¤ã
2.2.2ããããã¿ã¤ããã§ã¼ã³
2.2.3ãå ¥ãåã«ãªã£ãã¡ã³ã
2.2.4ããªãã¸ã§ã¯ãã¡ã³ãã®å¤ããã£ãã·ã¥ãã
2.3ãã¾ã¨ã3ç« ãDOMã¹ã¯ãªããã£ã³ã°
3.1ããã©ã¦ã¶ã®ä¸çã«ãããDOM
3.1.1ãæ¬è³ªçãªé ã
3.2ãDOMã¸ã®ã¢ã¯ã»ã¹ã¨æ´æ°
3.2.1ãinnerHTML対DOMã¡ã½ãã
3.2.2ããã¼ãã®è¤è£½
3.2.3ãHTMLã³ã¬ã¯ã·ã§ã³
3.2.4ãDOMãå¦çãã
3.3ãåæç»ã¨åé ç½®
3.3.1ãåé ç½®ã¯ãã¤çºçããã®ã
3.3.2ãã¬ã³ãã¼ããªã¼ã®å¤æ´ã®ãã¥ã¼ã¤ã³ã°ã¨ã¯ãªã¢
3.3.3ãåæç»ã¨åé ç½®ã極åæ¸ãã
3.3.4ãã¬ã¤ã¢ã¦ãæ å ±ã®ãã£ãã·ã¥
3.3.5ãã¢ãã¡ã¼ã·ã§ã³ã®ããã«è¦ç´ ãç»é¢é ç½®ããåãé¢ã
3.3.6ãIEã¨:hover
3.4ãã¤ãã³ãã®å§è²
3.5ãã¾ã¨ã4ç« ãã¢ã«ã´ãªãºã ã¨å¦çã®å¶å¾¡
4.1ãã«ã¼ã
4.1.1ãã«ã¼ãã®ç¨®é¡
4.1.2ãã«ã¼ãã®ããã©ã¼ãã³ã¹
4.1.3ãé¢æ°ãã¼ã¹ã®å復å¦ç
4.2ãæ¡ä»¶åå²
4.2.1ãif-else対switch
4.2.2ãif-elseã®æé©å
4.2.3ãã«ãã¯ã¢ãããã¼ãã«
4.3ãå帰
4.3.1ãã³ã¼ã«ã¹ã¿ãã¯ã®ä¸é
4.3.2ãå帰ã®ãã¿ã¼ã³
4.3.3ãå復å¦ç
4.3.4ãã¡ã¢å
4.4ãã¾ã¨ã5ç« ãæååã¨æ£è¦è¡¨ç¾
5.1ãæååã®çµå
5.1.1ããã©ã¹æ¼ç®åã¨ãã©ã¹ã¤ã³ã¼ã«æ¼ç®å
5.1.2ãé åã®é£çµ
5.1.3ãString.prototype.concat
5.2ãæ£è¦è¡¨ç¾ã®æé©å
5.2.1ãæ£è¦è¡¨ç¾ã¯ã©ã®ããã«åä½ããã®ã
5.2.2ãããã¯ãã©ããã³ã°ãç解ãã
5.2.3ãããã¯ãã©ããã³ã°ã®æ´èµ°
5.2.4ãããã¯ãã©ããã³ã°ã«é¢ãã注æç¹
5.2.5ãæ£è¦è¡¨ç¾ãå¹ççã«æ¹åãããã®ä»ã®æ¹æ³
5.2.6ãæ£è¦è¡¨ç¾ã使ãã¹ãã§ã¯ãªãå ´å
5.3ãæååã®ããªãã³ã°
5.3.1ãæ£è¦è¡¨ç¾ãç¨ããããªãã³ã°
5.3.2ãæ£è¦è¡¨ç¾ã使ããã«ããªãã³ã°ãè¡ã
5.3.3ãææ³ãæãåããã
5.4ãã¾ã¨ã6ç« ãåå¿æ§ã®ããã¤ã³ã¿ã¼ãã§ã¤ã¹
6.1ããã©ã¦ã¶UIã¹ã¬ãã
6.1.1ããã©ã¦ã¶ã®å¶é
6.1.2ãã©ããããã ã¨é·ãããã®ã
6.2ãã¿ã¤ãã¼ã¸ã®å§è²
6.2.1ãã¿ã¤ãã¼ã®åºæ¬
6.2.2ãã¿ã¤ãã¼ã®ç²¾åº¦
6.2.3ãã¿ã¤ãã¼ã§é åãå¦çãã
6.2.4ãã¿ã¹ã¯ãåå²ãã
6.2.5ãã³ã¼ãã®æéãè¨ã
6.2.6ãã¿ã¤ãã¼ã¨ããã©ã¼ãã³ã¹
6.3ãWeb Workers
6.3.1ãã¯ã¼ã«ã¼ã®ç°å¢
6.3.2ãã¯ã¼ã«ã¼ã¨ã®ããåã
6.3.3ãå¤é¨ãã¡ã¤ã«ã®èªã¿è¾¼ã¿
6.3.4ãå®ç¨ä¾
6.4ãã¾ã¨ã7ç« ãAjax
7.1ããã¼ã¿è»¢é
7.1.1ããã¼ã¿ã®ãªã¯ã¨ã¹ã
7.1.2ããã¼ã¿ã®éä¿¡
7.2ããã¼ã¿å½¢å¼
7.2.1ãXML
7.2.2ãJSON
7.2.3ãHTML
7.2.4ããªãªã¸ãã«ã®ãã¼ã¿å½¢å¼
7.2.5ããã¼ã¿å½¢å¼ã«é¢ããçµè«
7.3ãAjaxããã©ã¼ãã³ã¹ã¬ã¤ãã©ã¤ã³
7.3.1ããã¼ã¿ã®ãã£ãã·ã¥
7.3.2ãå©ç¨ããAjaxã©ã¤ãã©ãªã®éçãç¥ã
7.4ãã¾ã¨ã8ç« ãããã°ã©ãã³ã°ã®å®è·µçææ³
8.1ãäºéè©ä¾¡ãé¿ãã
8.2ããªãã¸ã§ã¯ã/é åã®ãªãã©ã«ã®å©ç¨
8.3ãå¦çãç¹°ãè¿ããªã
8.3.1ãé 延ãã¼ã
8.3.2ãæ¡ä»¶ä»ãäºåãã¼ã
8.4ãéããã¼ããå©ç¨ãã
8.4.1ããããæ¼ç®å
8.4.2ããã¤ãã£ãã¡ã½ãã
8.5ãã¾ã¨ã9ç« ãé«ããã©ã¼ãã³ã¹ãªJavaScriptã¢ããªã±ã¼ã·ã§ã³ã®ãã«ãã¨é ç½®
9.1ãApache Ant
9.2ãJavaScriptãã¡ã¤ã«ã®çµå
9.3ãJavaScriptãã¡ã¤ã«ã®åå¦ç
9.4ãJavaScriptã®æå°å
9.5ããã«ãæé対å®è¡æã®ãã«ãå¦ç
9.6ãJavaScriptã®å§ç¸®
9.7ãJavaScriptãã¡ã¤ã«ã®ãã£ãã·ã¥
9.8ããã£ãã·ã¥ã®åé¡ã«åãçµã
9.9ãã³ã³ãã³ãããªããªã¼ãããã¯ã¼ã¯ã®å©ç¨
9.10ãJavaScriptãªã½ã¼ã¹ã®é ç½®
9.11ãã¢ã¸ã£ã¤ã«ãªJavaScriptã®ãã«ãããã»ã¹
9.12ãã¾ã¨ã10ç« ããã¼ã«
10.1ãJavaScriptã®ãããã¡ã¤ãªã³ã°
10.2ãYUI Profiler
10.3ãç¡åé¢æ°
10.4ãFirebug
10.4.1ãã³ã³ã½ã¼ã«ããã«ãããã¡ã¤ã©
10.4.2ãã³ã³ã½ã¼ã«API
10.4.3ãæ¥ç¶ããã«
10.5ãInternet Explorerã®éçºè ãã¼ã«
10.6ãSafari Webã¤ã³ã¹ãã¯ã¿
10.6.1ããããã¡ã¤ã«ããã«
10.6.2ããªã½ã¼ã¹ããã«
10.7ãChromeã®éçºè ãã¼ã«
10.8ãã¹ã¯ãªããã®ããããã³ã°
10.9ãPage Speed
10.10ãFiddler
10.11ãYSlow
10.12ãdynaTrace Ajax Edition
10.13ãã¾ã¨ãç´¢å¼