Node技术架构 2021-07-29 Nodejs全解 2346 words 5 mins read 1 Node.js概述 1.1 Node.js不是什么 不是web框架(Flask,Spring) 不是编程语言(Python,PHP) 1.2 Node.js是 Read more...
前端面试Vue2 2021-07-21 面试题 961 words 2 mins read 1 Vue2的生命周期钩子有哪些?数据请求放在哪个钩子? 共11个 create(before+ed)*2 由于SSR会调用create,这种情况下 Read more...
前端面试Vue3 2021-07-21 面试题 556 words 2 mins read 1 Vue3为什么使用Proxy 弥补 Object.defineProperty 的两个不足 动态创建的 data 属性需要用 Vue.set 来赋值,Vue 3 用了 Proxy 就不需要了 基于性能考虑,Vue 2 篡改了数组的 7 个 Read more...
Umi-Request配置 2021-07-09 项目实战总结 758 words 2 mins read utils/request.js 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 /** Request 网络请求工具 更详细的 api 文档: https://github.com/umijs/umi-request Read more...
NodeStream模块 2021-07-08 Nodejs全解 2872 words 6 mins read 1.三个示例引入Stream 1.1 创建流 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // 引入fs模块 const fs = require('fs') // 利用fs创建流 const stream = fs.createWriteStream('./big_file.txt') // 写数据 for (let i = 0; i < 100000; i++) { Read more...