上一页 1 ··· 14 15 16 17 18
摘要: github地址:https://github.com/GoogleChrome/lighthouse 一、如果可以FQ的话可以从 chrome 扩展插件里直接安装。 二、下面是另一种使用方法:基于 node(版本≥6) 1.安装:npm install -g lighthouse 2.运行使用:l 阅读全文
posted @ 2018-05-07 10:49 heroljy 阅读(4011) 评论(0) 推荐(0)
摘要: 作者: 阮一峰 日期: 2015年2月 1日 复杂的软件必须有清晰合理的架构,否则无法开发和维护。 MVC(Model-View-Controller)是最常见的软件架构之一,业界有着广泛应用。它本身很容易理解,但是要讲清楚,它与衍生的 MVP 和 MVVM 架构的区别就不容易了。 昨天晚上,我读了 阅读全文
posted @ 2018-04-27 15:07 heroljy 阅读(1176) 评论(0) 推荐(0)
摘要: 一、求数字数组的平均数 - 使用 数组的 reduce() 方法将每个值添加到累加器,初始值为0,总和除以数组长度。 const average = arr => arr.reduce((accumulator, currentValue) => accumulator + currentValue 阅读全文
posted @ 2018-03-27 14:07 heroljy 阅读(307) 评论(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 阅读(2420) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18