Code Archive Skip to content Google About Google Privacy Terms
(εã»âã»)з o O ( å®è£ ã«4æéããã£ã¦ããã©ã1åã§ãããã! ãã©ã¦ã¶ä¸ã§åä½ãã JavaScript ã¯ã·ã³ã°ã«ã¹ã¬ããã§åä½ããããã 巨大ãªé åã Array#forEach ãªã©ã«ä¸ãã¦ãã¾ã㨠UI ã¹ã¬ãããåºã¾ã£ã¦ãã¾ãå¯è½æ§ãããã¾ãã Array#async ã¯é åãé©å½ãªåä½*1ã«åãã¦å¦çããã¤ãã¬ã¼ã¿ã¡ã½ãã(each, map, some, every)ãè¿ãã¾ãã å¦ççµäº(each, map)ãæ¡ä»¶æç«(some, every)㧠callback(æ»ãå¤) ãå¼ã³ã¾ããmap ãªãæ»ãå¤ã¯é åã«ãªãã¾ãã if (!Array.prototype.sync) { Array.prototype.sync = Array_sync; } if (!Array.prototype.async) { Array.prototype.async = A
ã¯ã©ã¹ã®ä½¿ãæ¹(åç´) mofmof.js ã§ã¯ mm("Hoge", { ã¡ã½ãã }) ã§ã¯ã©ã¹ mm.Hoge ãå®ç¾©ãããã¨ãã§ãã¾ãã mm("Hoge", { init: function(arg1, arg2) { this._arg1 = arg1; this._arg2 = arg2; }, method: function() { alert(this._arg1 + this._arg2); } }); var hoge = new mm.Hoge(1, 2); hoge.method(); new mm.Hoge(1, 2) ã®ã¿ã¤ãã³ã°ã§ init(1, 2) ãå¼ã°ãã¾ã init ã¯ã³ã³ã¹ãã©ã¯ã¿ã¨å¼ã°ãã 主ã«åæåã«é¢ããå¦çãè¨è¿°ãã¾ã mm.Hoge ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãçæãã¾ã alert(3) ãå®è¡ããã¾ã ã¯ã©ã¹å é¨ã§ä½¿ããã©ã¤ãã¼ããªã¡ã½
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}