MochiKit - ã¹ã¿ã¤ã«ã¬ã¤ã 翻訳 åæï¼StyleGuide - MochiKit - Trac MochiKitã®ã³ã¼ãã£ã³ã°è¦ç´ã®å¤§é¨åã¯Pythonã®PEP8ã¨PEP 7(ãã®é ã«åªå
ããã)ã«å¾ã£ã¦ãããããããJavaScriptç¹æã®ç¹ãããã¤ããã : ãã«ãã¤ã³ã»ãªãã¸ã§ã¯ããããã³ãã®ãããã¿ã¤ãã絶対ã«å¤æ´ããªãã(ä¾ãã°ããã®ãããªãã¨ã¯è¡ããªã: Object.prototype.foo = REALLY_BAD! ) 代ããã«é¢æ°ã®ä½¿ç¨ãå¿åããã é¢æ°ã®ããã«typeofæ¼ç®åã使ç¨ãã : typeof x ã§ã¯ãªã typeof(x) ã³ã³ã¹ãã©ã¯ã¿ã使ç¨ããã¨ãã«ã¯å¼æ°ãæ¬å¼§ã«å
¥ãã : new Error, foo ã§ã¯ãªã new wError("foo") 常ã«å®å
¨ä¿®é£¾åã§ä»ã®é¢æ°ãå¼ã³åºããã¾ãå©ä¾¿æ§ã®ããã®è¨å·çãªã¨ã¤ãªã¢ã¹ãç¨ããªã
{{#tags}}- {{label}}
{{/tags}}