摘要: git staTus查看缓存区 git add添加到缓存区 git commit -m添加到本地仓库 git push origin [本地分支]添加到远程仓库 git feach origin [远程分支]抓取远程仓库分支 git merge [origin/远程分支]把远程分支合并到本地分支 g 阅读全文
posted @ 2020-10-14 23:03 ㊀觉睡到小时候 阅读(51) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/w390058785/article/details/80522383 阅读全文
posted @ 2020-09-29 12:12 ㊀觉睡到小时候 阅读(63) 评论(0) 推荐(0)
摘要: 导入 1.cmd打开mongo的bin目录,按照格式输入以下 mongoexport -h 19.28.29.223:27017 -u yang -p yang -d yang -c yang -o D:/ff.json -h ip地址,如果倒不出来指定端口号 -u name-p password 阅读全文
posted @ 2020-09-28 11:20 ㊀觉睡到小时候 阅读(84) 评论(0) 推荐(0)
摘要: 301,302,499,504状态码 301永久重定向,表示请求的资源分配了新url,以后应使用新url。 302临时重定向,请求的资源临时分配了新url,本次请求暂且使用新url。302与301的区别是,302表示临时性重定向,重定向的url还有可能还会改变。 499客户端主动断开连接。是指一次h 阅读全文
posted @ 2020-09-10 17:53 ㊀觉睡到小时候 阅读(457) 评论(0) 推荐(0)
摘要: 跨域 域的范围:域、协议或端口 协议标识(protocol)、授权信息(auth)、主机地址相同不算跨域 CROS 是什么 跨域资源共享,它使用额外的 HTTP 头来告诉浏览器 让运行在一个 origin (domain) 上的Web应用被准许访问来自不同源服务器上的指定的资源。 为什么 当一个资源 阅读全文
posted @ 2020-09-10 17:51 ㊀觉睡到小时候 阅读(78) 评论(0) 推荐(0)
摘要: 1.点击vscode左上角第五个,安装open in browser插件 2.打开html页面,鼠标右键点击open in default browser 阅读全文
posted @ 2020-08-21 10:34 ㊀觉睡到小时候 阅读(509) 评论(0) 推荐(0)
摘要: 1.引入http模块 const http = require('http'); 2.配置端口 const config = { port: 8003 }; 3.创建服务 const server = http.createServer(function (req, res) { console.l 阅读全文
posted @ 2020-08-19 17:51 ㊀觉睡到小时候 阅读(120) 评论(0) 推荐(0)
摘要: node.js获取当前时间并格式化 1.安装moment包 $ npm install --save moment 2.等待安装,如果很慢就用下面命令代替 $ npm install --registry=https://registry.npm.taobao.org --save moment 3 阅读全文
posted @ 2020-08-12 09:49 ㊀觉睡到小时候 阅读(1200) 评论(0) 推荐(0)
摘要: js中var contst let之间的区别 1.const 和 let 必须先声明再使用,不支持变量提升 console.log(a,b,c); //报错 ReferenceError: a is not defined​var a=1;let b=2;const c=3;console.log( 阅读全文
posted @ 2020-08-08 18:29 ㊀觉睡到小时候 阅读(234) 评论(0) 推荐(0)
摘要: LInux:一切皆文件(文件:读写执行(查看,创建,删除,移动,复制,编辑),权限(用户,用户组)系统:(进程,磁盘)); linux目录文件 绝对路径和相对路径 绝对路径 由根目录/写起,例如:/use/shaere/doc 绝对路径 不由/写起,例如cd ../home 处理目录常用命令 / 根 阅读全文
posted @ 2020-08-05 18:57 ㊀觉睡到小时候 阅读(126) 评论(0) 推荐(0)