摘要: 代码合并一般分两种情况rebase与merge 说明:如果div是从master创建出来的分支,那么,master就是dev的上游,dev是在master的下游。 下游合并上游的代码:要尽可能的保存提交路径简洁,那么用rebase 上游合并下游的代码:要尽可能的保存提交细节,那么采用merge de 阅读全文
posted @ 2020-07-29 11:39 红妆 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 文件提交的出现的各种问题及解决办法 阅读全文
posted @ 2020-07-29 11:21 红妆 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 本地代码同步到远程仓库的时候出现的问题及解决方式 阅读全文
posted @ 2020-07-29 11:11 红妆 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 描述了webpack 4.x版本的安装说明 阅读全文
posted @ 2020-07-27 17:19 红妆 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 后台返回给前端的富文本数据如: { "status": 1, "info": "获取活动数据成功", "data": [ { "id": "000", "img_src": "http://zt.52hangjia.com/Uploads/Picture/Picture/2020-07-18/710 阅读全文
posted @ 2020-07-18 15:24 红妆 阅读(4797) 评论(0) 推荐(0) 编辑
摘要: mongoose连接详情参考官网 在项目中新建db文件夹 connect.js连接mongo: const mongoose=require('mongoose'); mongoose.connect("mongodb://localhost/27017",{ useNewUrlParser: tr 阅读全文
posted @ 2020-07-14 10:51 红妆 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 一、安装方式 安装mongodb :www.mongodb.com next-->complete-->Instal MongoD as Service 不勾选 --> Install MongoDB Compass 不勾选--> fish cmd 命令行 mongod 出现:shutting do 阅读全文
posted @ 2020-07-14 10:44 红妆 阅读(539) 评论(0) 推荐(0) 编辑
摘要: body-parser模块主要解析post接口请求 1、npm install body-parser -S 2、server.js中引用 const bodyParser=require('body-parser'); app.use(bodyParser.urlencoded({extended 阅读全文
posted @ 2020-07-14 10:14 红妆 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 出现 参数是 undefined or null 一、检查是否安装 body-parser server.js中是否引入 app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); 二、如果上面没有 阅读全文
posted @ 2020-06-16 14:31 红妆 阅读(5140) 评论(0) 推荐(0) 编辑
摘要: 1.删除本地分支和删除远程分支 # 删除本地分支 $ geit branch -D 分支名 #删除远程分支 $ git push origin --delete 分支名 2、删除远程仓库文件,保留本地文件 删除的文件a.text: git rm -r --cached a 提交到远程仓库: git 阅读全文
posted @ 2018-07-26 10:05 红妆 阅读(243) 评论(0) 推荐(0) 编辑