Writing Modular JavaScript With AMD, CommonJS & ES Harmonyã®Modules With Deferred Dependenciesã便å©ãªã®ã§æ´»ç¨ãã¦ãã åæåå¦çãéåæå¦çã§requireãã¦ãã¦ãå³ä½¿ããã¨ã¯éããªãå ´åã«ä½¿ãã ã¢ã¸ã¥ã¼ã«å´ã§ã¯ã¢ã¸ã¥ã¼ã«ãã®ãã®ã§ã¯ãªãã¦promiseãè¿ãã¦ããã¦ãã¢ã¸ã¥ã¼ã«ã®å®ä½ãå®æãããresolveã§æ¸¡ãã 使ãå´ã¯requireãã¦ããpromiseã®thenã¡ã½ããã®callbackã§ã¢ã¸ã¥ã¼ã«ã®å®ä½ãåãåã£ã¦ä½¿ãã // ä½ããã®éåæå¦çãçµã¦åæåãããã¢ã¸ã¥ã¼ã« define('someModule',['jquery'],function($){ var dfd = $.Deferred(); setTimeout(function(){ // ã¢ã¸ã¥ã¼ã«ã¨ãã¦å®é
{{#tags}}- {{label}}
{{/tags}}