2005-09-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ã¦ãªããã¯ãã¼ã¯ã®ã¨ã³ããªã¼ã¨ã¿ã°ãï¼æ¬¡å å¹³é¢ä¸ã«é ç½®ããããã¯ãã¼ã¯ã¬ãããä½ã£ã¦ã¿ã¾ãããã¨ã³ããªã¼ã¨ã¿ã°ã®é¢ä¿ãé³¥ç°çã«çºãããã¨ãåºæ¥ã¾ããå®ç¨æ§ã¯ãã¾ããªãã§ããã人ã«ãã£ã¦ã¯é¢ç½ãããããã¾ãããã¯ã¦ãªããã¯ãã¼ã¯ä¸ã®RSSã®ã¢â¦
ã¯ã¦ãªããã¯ãã¼ã¯ã®ããããããã¯ãã¼ã«ã¼ã»ããããã¨ã³ããªãæ±ããããã¯ãã¼ã¯ã¬ãããä½ã£ã¦ã¿ã¾ãããè¦ã¯ãAmazonã®ããããããã¯ã¦ãªããã¯ãã¼ã¯ã«ãã¦ã¯ãã¦ãæãã£ããç°¡åã«ãããã®ã§ããããã¯ãã¼ã¯ã¬ããã§ããããªãè²ã åºæ¥ããã¨ãâ¦
http://d.hatena.ne.jp/brazil/20050909/1126254775ãåæãã¦ããããã«ãæ§ã ãªJavaScriptã©ã¤ãã©ãªãå ¬éããã¦ããããã®ä¸ã®ããã¤ããå®éã«è§¦ã£ã¦ã¿ãããprototype.jsãä¸çªãã£ãããããä½æ ã ããï¼1ã¤ã®çç±ã¯ãprototype.jsã¯å®å¿ãã¦å©ç¨ã§ãâ¦
JavaScriptã§å°ã大ããªã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ããã¨ãå¦çé度ãã©ãã©ãé ããªã£ã¦ãã¾ããã¨ããããå¦çé度ãåä¸ãããã«ã¯ãããã«ããã¯ã¨ãªã£ã¦ããå¦çãè¦ã¤ãã¦ããã®é¨åã®ããã©ã¼ãã³ã¹ãæ¹åããã®ãä¸è¬çã§ãããããã§ãããã«ããã¯â¦
JavaScriptã§ãã¶ã¤ã³ãã¿ã¼ã³ãæ¸ãã¦ã¿ããã¨ã¯ããããã¾ããFactoryãã¿ã¼ã³ãªã©æ¸ãã¦ãé¢ç½ããªãã®ã§ããã«ãã¹ã¬ããã»ãã¶ã¤ã³ãã¿ã¼ã³ã«ããããã¡ãããJavaScriptã®è¨èªä»æ§ã«ã¹ã¬ãããªã©ãªãããããããã©ã¦ã¶ç°å¢ã§ã¯å®è³ªçã«ã¹ã¬ãããåå¨â¦
JavaScript 㧠private/public ã®å®ç¾ - llameradaã®æ¥è¨ã§ç´¹ä»ãããLayeredClass ã®å®è£ æ¹æ³ã®è©³ç´°ã«ã¤ãã¦èª¬æãããHogeã¯ã©ã¹ãLayeredClassã ã¨ãããããã¨ãHogeã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã__privateInstanceã¨ããã¡ã³ãå¤æ°ãå¿ ãæã¤ããã®ã¨ãã__â¦
ç¹å®ã®ãã¼ã¿ãã©ã¼ãããã¯ç¨ãããç´æ¥JavaScriptã®ã³ã¼ããè¿ãææ³ã§ããããã®ã¨ããã©ã¦ã¶ã¯ããµã¼ããè¿ããã³ã¼ããevalã§ç´æ¥å®è¡ãããä¾ãã°æ¬¡ã®ãããªã³ã¼ãããµã¼ãã¯è¿ãã insert_cities(["éã±å³¶éã±å³¶æ", "ã"], ["足ç«åº", "ã"])ãµã¼ãâ¦
åæï¼Backpack: Ajax Mistakesã¨ã¦ãåèã«ãªã£ãã®ã§ãããã¤ã訳ãã¦ã¿ãã ãæ»ãããã¿ã³ãç¡å¹ã«ãã ãæ»ãããã¿ã³ã¯ãæ¨æºçãªWebãµã¤ãã®ã¦ã¼ã¶ã¼ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®éè¦ãªæ©è½ã®ï¼ã¤ã§ãããä¸å¹¸ãªãã¨ã«ããæ»ãããã¿ã³ã¯JavaScriptã¨ã®ç¸æ§ãâ¦
JavaScript ã¯æå¤ã«å¼·åãªè¨èªã§ãããhttp://d.hatena.ne.jp/brazil/20050829/1125321936 Private Members in JavaScriptãããã®è¨äºã«è§¦çºããã¦ãprototype.js風ã«private/publicæ©è½ãJavaScriptã§å®ç¾ãã¦ã¿ãããããªé¢¨ã«ãããã var Hoge = Layereâ¦