摘要: 一、求数字数组的平均数 - 使用 数组的 reduce() 方法将每个值添加到累加器,初始值为0,总和除以数组长度。 const average = arr => arr.reduce((accumulator, currentValue) => accumulator + currentValue 阅读全文
posted @ 2018-03-27 14:07 heroljy 阅读(292) 评论(0) 推荐(0) 编辑
摘要: let param = new FormData(); param.append("paths", this.ruleForm.uploadPath); param.append("pkg", this.ruleForm.packageName); // param.append("file", $ 阅读全文
posted @ 2018-03-27 09:58 heroljy 阅读(2402) 评论(0) 推荐(0) 编辑