摘要: 2.2 map 2.2.1 语法:_.map(list, iteratee, [context]) 2.2.2 说明:对集合的每个成员依次进行某种操作,将返回的值依次存入一个新的数组。接收3个参数。list可理解为数据源iteratee迭代器可理解为回调方法;context执行上下文。 list可... 阅读全文
posted @ 2016-01-23 14:53 本相 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 2.1 each 2.1.1 语法:_.each(list, iteratee, [context]) 2.1.2 说明:依次对集合的所有元素进行某种操作,原样返回list。接收3个参数,list集合可以理解为数据源;iteratee即迭代器可以理解为回调方法;context执行上下文。 list... 阅读全文
posted @ 2016-01-23 14:52 本相 阅读(2541) 评论(0) 推荐(0) 编辑