摘要: 接着第一课,我们看下collection函数集中剩下的几个 // Invoke a method (with arguments) on every item in a collection. _.invoke = function(obj, method) { var args = slice.call(arguments, 2); return _.map(obj, function(value) { return (method.call ? method || value : value[method]).apply(value, args); })... 阅读全文
posted @ 2011-10-20 15:01 冰王子(等待只为与你相遇) 阅读(669) 评论(0) 推荐(0) 编辑