02 2022 档案
摘要:reduce()用于计算数组元素相加之后的总和。 语法:array.reduce(function(total, currentValue, currentIndex, arr), initialValue) 参数描述: total:必需。初始值, 或者计算结束后的返回值 currentValue:
阅读全文
摘要:在调后端接口时,控制台报错Uncaught (in promise) Error: timeout of 100000ms exceeded 原因是设置的请求时间太短,找到前端配置文件request.js,本项目中为req.js,修改请求超时时间timeout为更大的值:
阅读全文