博客
分类
标签
归档
友链
关于
博客
分类
标签
归档
友链
关于
源码
TreeDocs
☁️☁️-node-js常用工具包
进程版本管理node 版本管理工具 –n安装:npm install -g n 列出可选择的 版本:$ n 安装某个 版本:$ n <version> npm 代理管理工具 – nrm安装:npm install -g nrm 列出可选择的源:$ nrm ls 12345678910 npm ---- https://registry.npmjs.org/ cnpm ---...
2021-10-17
Read More
📁📁linux文件操作常用命令
文件夹重命名 mv,mv相当于剪切操作mv命令既可以重命名,又可以移动文件或文件夹。例子:将目录name重命名为naming 1mv /path/filename /targetPath/filename 复制1copy /path/filename /targetPath/filename 创建文件夹1mkdir group 删除文件夹删除文件夹 group 1rm -rf group...
2021-10-15
Read More
🦜🦜-vue中使provide中的数据变为响应式
正常使用provide的方式:1234// 父组件中:provide:{ for: 'demo'} 这样子组件中无论多深的子组件都可以使用: 1234567// 子组件inject:['for'],data(){ return{ demo: this.for }} 但是上面的写法...
2021-10-12
Read More
🌦🌦-indexOf,includes,空字符串,返回的什么
最近刷letcode碰到的小问题 indexOf12let str = "string"str.indexOf("") // 0 mdn解释The index of the first occurrence of searchValue, or -1 if not found. An empty string searchValue produces ...
2021-10-09
Read More
🦜🦜vue-$emit-钩子函数
标题换一种说法:vue $emit 调用父组件异步方法,执行完毕后再执行子组件的某方法使用回调的形式 123456789101112// 组件的html中添加事件 @getData="getData"methods : { getData(params, callback) { console.log("子组件的传递到父组件的参数"...
2021-10-07
Read More
🌦🌦-js-修改对象key
原始数据: 123456let Obj={ parentid:"43323wsd2e2d2e33r3redad", head_img:"i am a url",} 想要的数据: 123456let newObj={ ParentID:"43323wsd2e2d2e33r3redad", avat...
2021-09-29
Read More
🌦🌦-cookie-为什么作为token-放在header里
现象:后端配置了cores跨域,前端直接请求,没有通过代理,这样如果设置cookie,只能设置到, localhost里,request header 无法带过去 手动设置header Access-Token 123header: { Access-Token: Cookies.get("Access-Token")} 通过代理,携带在在req...
2021-09-21
Read More
🎨🎨-git-一些常用参数设置
-u123[-u | --set-upstream]git push -u origin main git push ---set-upstream origin main 设置默认推送分支 origin1git remote add origin http:xxxxx origin 是提交远程的命名 也可以自己命名比如 ppp o –help比如git push 1git push --...
2021-09-18
Read More
🗳🗳-nginx-启动停止命令
启动1$ ./nginx 查看nginx 的状态ps -ef | grep nginx 出现master 则启动成功 关闭nginx1kill -9 9658(进程号 上面的) 停止 nginx 命令1./nginx -s stop 重启nginx 1$ ./nginx -s reload 查找nginx 位置1$ whereis nginx 检测 nginx.config正确性1...
2021-09-14
Read More
🐓🥚-如何写一个脚手架工具
前言用过构建工具的亲们知道,通常通过全局安装一个 xxx-cli 的 npm 包,就能在命令行用命令进行构建。那么这个 npm 包如何变成一个可执行的命令呢? npm cli 运行原理1.当全局安装 npm 包的时候,npm 会把 package.json 中 bin 配置的 command-name 添加到系统 $PATH中去。 拿 macOS 举例,npm 会在 /usr...
2021-09-10
Read More
Previous
8 / 12
Next
粘贴文本
全选文本
剪切文本
复制文本
站内搜索
必应搜索
新标签页打开
复制链接地址
复制图片
谷歌识图
常见问题
示例博客
加入社区
本站源码
主题源码
暗黑模式
打印页面
阅读模式