摘要: 柯里化:把接受多个参数的函数变换成接受单个参数的函数,并且返回准备接受余下参数,还能返回结果的一种技术。 1 function currying(fn){ 2 var args = Array.prototype.slice.call(arguments, 1); 3 4 ... 阅读全文
posted @ 2014-09-01 12:56 周文洪 阅读(347) 评论(0) 推荐(0) 编辑