Javascriptã©ã¤ãã©ãªUnderscore.jsãããã便å©ã ããã便å©ãªã®ã«ãããããããããã¾ãæ¥æ¬èªã®æ å ±ããªãã£ãã®ã§ãå ¬å¼ã®ããã¥ã¡ã³ããã¹ããªãã¥ã¢ã«æ訳ãã¦ã¿ãã http://documentcloud.github.com/underscore/ Collection Functions each _.each(list, iterator, [context]) listã®è¦ç´ ãã¤ãã¬ã¼ãããããã¹ã¦ã®è¦ç´ ã¯iteratoré¢æ°ã«yieldããããiteratorã«ã¯(element, index, list)ã®3ã¤ã®å¼æ°ã渡ããããããlistãJavascript Objectã ã£ãå ´åã¯(value, key, list)ã«ãªãã _.each([1, 2, 3], function(num){ alert(num); }); => alerts eac
{{#tags}}- {{label}}
{{/tags}}