$.each(arr, f)ã¯ãfuncitonã«(index, element)ã®é ã§å¼æ°ã渡ãã Utilities/jQuery.each - jQuery Wiki $.map(arr, f)ã¯ãfuncitonã«(element, index)ã®é ã§å¼æ°ã渡ãã Utilities/jQuery.map - jQuery Wiki .......éãããã¼ãã var f = function(a,b){ console.log("a:" + a + " b:" + b); return a } => undefined var arr = ['foo','bar','baz'] => undefined $.each(arr,f) a:0 b:foo a:1 b:bar a:2 b:baz => ["foo", "bar", "baz"] $.map(arr,f) a:foo
{{#tags}}- {{label}}
{{/tags}}