ååã¯é åããã³eachã«ã¤ãã¦èªãã§ããã¾ããã ä»åã¯ãåå軽ã触ããjQueryã®åæåã«ã¤ãã¦è©³ããè¦ã¦ããããã¨æãã¾ã(ã¯ã¨ãªã»ã¬ã¯ã¿/ã¨ã¬ã¡ã³ãæä½ã¾ããã®è©±ã¯ã¾ãä»åº¦)ã 対象 jQuery 1.5.0 ããã§ã¿ãã jQueryã®ã½ã¼ã¹ã¯ãå¤å´ãfunctionã§å²ã¾ãã¦ãã¾ãã (function( window, undefined ) { // ãã¾ãã¾ãªåæå // ... })(window); ãã®functionã¯windowã¨undefinedã¨ããäºã¤ã®å¼æ°ãåã£ã¦ãã¾ãã javascriptã®undefinedã¨ããã®ã¯æªå®ç¾©ã®å¤ã表ç¾ããã®ã«ä½¿ããã¦ãã¾ãããæåãªè©±ã¨ãã¦ãããã¯å®æ°ãäºç´èªã§ã¯ããã¾ããã var undefined="hello"; alert(undefined); // "hello" ãã®ããã«ãã¦ã¼ã¶ãååã®å¤æ°ãå®ç¾©
é³ã¯ãã®ãééããéã«ãã®ééãããæ¹ãæ¸è¡°ããããã®ã§ãåºæ¬çã«éçã³ã³ã¯ãªã¼ãã®æ¹ãé®é³æ§è½ãé«ãã§ãã ãããè³è²¸ã§ã¯ãã¾ãé²é³æ§ãªã©ã¯éè¦è¦ãã¦ãã¾ããã®ã§ãè¨è¨ä¸é æ ®ããã¦ããªããã¨ãå¤ãã®ã§ãé²é³æ§ã¯åè²ãªã©ã«æ¯ã¹ã¦è½ã¡ããã¨ãå¤ãã§ãã ä½å® ã«é®é³æ§è½ã¯ï¼ã¤ã®æ§è½ãããã¾ãã質åããããå ¨é¨ã®æ§è½ã«ã¤ãã¦ã§ã®è³ªåã«ãªã£ã¦ãã¾ããã ä¸ä¸éã®é³ã¯ï¼ç¨®ã®ãã§ãã¯ãå¿ è¦ã§ãã足é³ã®ãããªãã®ï¼ééè¡æé³ã¨ããã¾ãï¼ã¯åºã®ä»ä¸ããªã©ã«ããã»ã¨ãã©å¤ããããä¸è¬ã«åºã®éçã³ã³ã¯ãªã¼ãåããæ¢ã®é ç½®ãªã©ã®åºã®æ§é ã«ããã»ã¼æ±ºã¾ã£ã¦ãã¾ãã¾ãã åºã®åãã200mmç¨åº¦ä»¥ä¸ãããã®ã建ç¯å¦ä¼ã®æ¨å¥¨å¤ã«è¿ããã®ã§ãï¼å ã®åçã«ãã300mmã¯ã©ã¹ã¯ãã¤ãã¹ã©ãã¨ããä¸ã«ç©ºéãããæ§é ã®ãã¨ãå¤ããé®é³æ§è½ãè¯ããªã£ã¦ããã±ã¼ã¹ã¨æªããªã£ã¦ããã±ã¼ã¹ãããã¾ãã®ã§ãããªãåããã®ã¯ãã¤ãã¹ã©ã
JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives advice to avoid common mistakes and subtle bugs, as well as performance issues and bad practices, that non-expert JavaScript programmers may encounter on their endeavours into the depths of the language. JavaScript Garden does not aim to teach you JavaScript. Form
â ææ³ ã¾ãçºè¦ããã¨ãã«ãµã¤ããã¼ã®ãã¶ã¤ã³ã綺éºã ãªã¨æã£ããã¾ãæç« å ã§ã¡ããã¨å é¨ãªã³ã¯ãè²¼ã£ã¦ãã£ã¦ã¨ã¦ãè¦ãããä½ãã«ãªã£ã¦ããã å 容ãããã¾ã§é£ããæ¸ãæ¹ã¯ãã¦ãªãã®ã§ä½ã¨ãèªãããã¾ãã³ã¼ã(or æå)ã§æ¸ãããã«ãã¦ããã®ãã¯ç¥ããªããã©ãç»åãä¸å使ããã«prototypeã¨ããã¡ããã¨èª¬æã§ãã¦ãã¦åãã¨æã£ãã ããªãä»æ§ãåã£ã¦ãæãã®äººãæ¸ãã¦ã¦ãnoteã«ES5ã®æã«ã¤ãã¦ãªã©ã触ãããã¦ãã¦ããªãç´°ããã¨ããæ¸ããã¦ãããé£æ度çã«ã¯JavaScript Patternsã¨åããããã ã¨æããã©ãã¨ã¦ãããæç« ãWebã§å ¬éãã¦ããã¦ããã®ã§æ¯éèªãã§ããã¹ãã ã¨æãã èè ã§ããIvo Wetzel (Writing)ã¨Zhang Yi Jiang (Design)ã«æè¬ãã JavaScript Garden http://bonsaiden
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}