摘要: //引入mongoose第三方模块 用来操作数据库 const mongoose = require('mongoose'); //数据库连接 mongoose .connect('mongodb://localhost/playground', { useNewUrlParser: true }) 阅读全文
posted @ 2022-06-18 14:37 琴师i 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一、less vue中引入less(注意安装低版本,高版本依赖不支持) (https://blog.csdn.net/qq_41848496/article/details/108522314) (参考) npm install less@3.9.0 less-loader@5.0.0 --save 阅读全文
posted @ 2021-05-27 22:51 琴师i 阅读(53) 评论(0) 推荐(0) 编辑
摘要: config => index.js =>文件中 1.删除proxyTable中的代理内容。 proxyTable: { '/api':{ target:'http://192.168.1.111:8081', changeOrigin:true, pathRewrite:{ '^/api':'/' 阅读全文
posted @ 2021-05-20 17:21 琴师i 阅读(184) 评论(0) 推荐(0) 编辑
摘要: vue中引入less(注意安装低版本,高版本依赖不支持) npm install less@3.9.0 less-loader@5.0.0 --save-dev main.js中写入 import less from 'less' Vue.use(less) 安装成功后,打开 build/webpa 阅读全文
posted @ 2021-05-20 17:10 琴师i 阅读(288) 评论(0) 推荐(0) 编辑
摘要: npm装包时-S和-D的区别 npm install name -save-dve 简写(npm install name -D) 自动把模块和版本号添加到devdependencies.(开发环境) npm install name -save 简写(npm install name -S) 自动 阅读全文
posted @ 2021-05-20 17:07 琴师i 阅读(225) 评论(0) 推荐(0) 编辑
摘要: git安装 https://blog.csdn.net/sanxd/article/details/82624127(参考) 之后在文件夹可以右键出现git bush here 安装NodeJs以及vue的配置 https://www.jb51.net/article/170872.htm 阅读全文
posted @ 2021-05-20 16:54 琴师i 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 html结构: <div class="scroll" id="gd"></div> css样式: body{ height:8000px;/*只是为了实现效果*/ }.scroll{ width: 100%; height: 250px; background: #f00; } .s 阅读全文
posted @ 2020-08-15 23:06 琴师i 阅读(64) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示