上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
  2023年2月9日
摘要: 1 实现效果 2 组件代码 1. 模板代码 template <template> <template v-if="!noColor"> <ColorPicker v-model="colorData.color" size="small" :colors="colorData.colors"/> 阅读全文
posted @ 2023-02-09 11:58 pleaseAnswer 阅读(55) 评论(0) 推荐(0) 编辑
摘要: HttpRequestBase 类 1 构造函数 constructor(baseUrl) { const basePort = getUrlPort(baseUrl); this.baseUrl = baseUrl; this.baseUrlWithPort2 = baseUrl.replace( 阅读全文
posted @ 2023-02-09 11:48 pleaseAnswer 阅读(23) 评论(0) 推荐(0) 编辑
  2022年12月30日
摘要: 1 学习路径 掌握 readline -- 输入流 events -- 实现 nodejs 事件流 stream -- 输入输出流 ansi-escapes -- 实现命令行的特殊显示 rxjs -- 响应式模型库 掌握命令行交互的实现原理,并实现一个可交互的列表 分析 inquirer 源码掌握其 阅读全文
posted @ 2022-12-30 11:38 pleaseAnswer 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 1 脚手架初始化项目模板开发 1.1 手动创建项目模板 mkdir zmoon-cli-dev-template cd ./zmoon-cli-dev-template npm init -y mkdir zmoon-cli-dev-template-vue3 cd ./zmoon-cli-dev- 阅读全文
posted @ 2022-12-30 11:33 pleaseAnswer 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 egg.js 1.1 初始化 初始化和项目启动方法 # 初始化 $ mkdir egg-example && cd egg-example $ npm init egg --type=simple # 实际上执行的是 npm i create-egg $ npm i # 项目启动 $ npm r 阅读全文
posted @ 2022-12-30 11:32 pleaseAnswer 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1 项目创建前准备阶段 exec() { try { // 1. 准备阶段 this.prepare() // 2. 下载模板 // 3. 安装模板 } catch(e) { log.error(e.message) } } prepare() { // 1. 判断当前目录是否为空 // 1.1 询 阅读全文
posted @ 2022-12-30 11:21 pleaseAnswer 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1 一周导读 1.1 标题 完成 imooc-cli 脚手架创建项目流程开发 1.2 将收获什么 命令行交互方法 服务端框架 eggjs 的应用和 API 开发方法 eggjs 集成云 mongodb 1.3 主要内容 脚手架项目创建功能架构设计 通过命令行交互获取项目基本信息 egg.js + 云 阅读全文
posted @ 2022-12-30 11:18 pleaseAnswer 阅读(33) 评论(0) 推荐(0) 编辑
  2022年11月29日
摘要: git add . git commit -m 'refresh v2.0.0' git tag -a 2.0.0 -m '' git push origin master git push origin --tag 给指定的某个 commit 号加 tag 打tag不必要在head之上,也可在之前 阅读全文
posted @ 2022-11-29 14:55 pleaseAnswer 阅读(113) 评论(0) 推荐(0) 编辑
  2022年11月25日
摘要: 疑问和收获 exec 和 execFile 到底有什么区别? 为什么 exec/execFile/fork 都是通过 spawn 实现的,spawn 的作用到底是什么? 为什么 spawn 调用后没有回调,而 exec 和 execFile 能够回调? 为什么 spawn 调用后需要手动调用 chi 阅读全文
posted @ 2022-11-25 15:46 pleaseAnswer 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1 node 多进程开发 1.1 进程(在操作系统中如何查看进程的嵌套关系) 官方文档 1. 什么是进程(Process) 进程是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础 进程的概念主要有两点 进程是一个实体, 每一个进程都有它自己的地址 阅读全文
posted @ 2022-11-25 15:18 pleaseAnswer 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页