JavaScriptã¯ç§»ãå¤ããã®æ©ãè¨èªã§ãã ãã1年以ä¸çµã£ã¦ãã¾ãããè¨äºã®ã¡ã³ããã¡ããã¨ã§ãã¦ããªãã®ã§ãæ¶ãç·ãå
¥ãããã¨ã«ãã¾ããã åèç¨åº¦ã®ããã«è¨äºã¯ä¸å¿æ®ãã¾ãããããæ°ããæ
å ±ãèªã¾ãããã¨ããå§ããããã¾ãã ã¯ããã« --- æè¿ã§ã¯ JavaScript ã®å®è¡ç°å¢ã¯ãã©ã¦ã¶ã«éãã¾ãããï¼node.js, Web Workersï¼ ã¾ããæ§æ¥ã®ãã㪠<script> çµç±ã§ã®ãã¼ããã¨ãã«å¤ããªã£ã¦ãã¾ããä»ã¯ CommonJS ã¹ã¿ã¤ã«ã§ãrequire ãç¨ããã¢ã¸ã¥ã¼ã«ã®ãã¼ããè¡ãªããã¨ãããè¯ãã¨ããã¦ãã¾ãã ã§ãããã次ã®ãããªãã¨ã¯æ¹ããå¿
è¦ãããã¾ãã - var YourModule = {}; ãªã©ã¨ãã¦ãå¤é¨ãã YourModule.hoge(); ãªã©ã¨å¼ã³åºãæ¸ãæ¹ - this === window ã ã¨æãã㨠ä»åã¯ã
{{#tags}}- {{label}}
{{/tags}}