摘要: 1.pipe 管道: 我们想让一个参数通过第一个函数之后再通过第二个函数 一般写法: const addOne = x => x + 1 const addTwo = x => x + 2 addTwo(addOne(1)) // 4pipe写法: const pipe = ...args => x 阅读全文
posted @ 2020-09-16 16:09 若白衣卿相 阅读(311) 评论(0) 推荐(0) 编辑