摘要: 今天提交代码提示 git remote add origin**************fatal: remote origin already exists.(报错远程起源已经存在。) 可以这样 1、先输入 git remote rm origin (移出远程仓库)2、再输入 git remote 阅读全文
posted @ 2021-11-04 13:28 小聪向前冲 阅读(55) 评论(0) 推荐(0)
摘要: 在router文件夹下的index.js打下以下代码 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call 阅读全文
posted @ 2021-11-02 22:00 小聪向前冲 阅读(77) 评论(0) 推荐(0)
摘要: 当我们网页的尺寸过宽会导致在浏览器底部产生一个滚动条 我们可以给body添加以下样式 body{ overflow: scroll; overflow-x: hidden; } 阅读全文
posted @ 2021-11-02 07:07 小聪向前冲 阅读(143) 评论(0) 推荐(0)
摘要: 1.首先下载对应系统的node.js稳定版本 2.下载完成后用cmd 输入node -v npm -v查看版本号出来对应的版本号证明下载完成 新版的Node.js已自带npm,安装Node.js时会一起安装,npm的作用就是对Node.js依赖的包进行管理,也可以理解为用来安装/卸载Node.js需 阅读全文
posted @ 2021-10-28 10:23 小聪向前冲 阅读(279) 评论(0) 推荐(0)
摘要: 1. 如何模拟真实环境中,读取服务端数据,首先需要使用Nodejs搭建一个本地服务器的环境。 在搭建web服务器之前,需要先安装node.js(安装版本最好为6.9.x) 安装后node.js,接下来就需要安装http的镜像文件 npm install http-server -g(windows下 阅读全文
posted @ 2021-10-14 14:11 小聪向前冲 阅读(435) 评论(0) 推荐(0)