10 2020 档案

摘要:什么是 reduce reduce() 方法对数组中的每个元素执行一个由您提供的reducer函数(升序执行),将其结果汇总为单个返回值 const array1 = [1, 2, 3, 4]; const reducer = (accumulator, currentValue) => accum 阅读全文
posted @ 2020-10-27 14:31 渡心° 阅读(676) 评论(0) 推荐(0)
摘要:React 装饰器配置 首先安装:@babel/plugin-proposal-decorators npm install -D @babel/plugin-proposal-decorators 根目录创建config-overrides.js const { override, addDeco 阅读全文
posted @ 2020-10-21 17:17 渡心° 阅读(315) 评论(0) 推荐(0)