2009å¹´01æ19æ¥18:15 ã«ãã´ãªLightweight Languages javascript - block代ããã®closureã¨ãã®åé¡ ãªãããªã«æé ãªåé¡ã ã£ãã®ã§ã ãããå®ã¯ãJavaéçºè ã®ããã®Ajaxå®è·µéçºå ¥éãã§ãç´¹ä»ããã¦ããæ¸ãæ¹ã for æã¨ç¡åé¢æ°ã®ã¤ãã£ãªã - ITæ¦è¨ ã¨ããããã§ãããããã¹ã¦è§£æ±ºããã®ã for (var i = 0, len = list.length; i < len; i++) (function(node, i) { var text = node.textContent; node.onclick = function() { alert(text) }; })(list[i], i) ãªã®ã ã ãã ããã³ã¡ã³ãæ¬ã«æ®ãããåé¡ãæ®ãã èªåã§ãæ¤è¨¼ãã¦ã¿ãã n = : ãããããã©ã«ãã§ã¯100ä¸åã«ãã¦
{{#tags}}- {{label}}
{{/tags}}