摘要: vue-cli 中配置代理服务器 项目根目录下新建 vue.config.js 文件 module.exports = { // 开启代理服务器 devServer: { proxy: "http://localhost:3000", // 前端请求 http://localhost:8080 会被 阅读全文
posted @ 2022-01-23 23:36 霸哥yyds 阅读(276) 评论(0) 推荐(0)
摘要: 默认插槽 <template> <div> <h1>App</h1> <Son> <p>传递给默认插槽的内容</p> </Son> </div> </template> <script> import Son from '@/components/Son' export default { comp 阅读全文
posted @ 2022-01-23 22:32 霸哥yyds 阅读(76) 评论(0) 推荐(0)
摘要: 文档游标 执行 find 方法后该方法的返回值称为文档游标 let arr = []; for(let i = 0; i < 100; i++) { arr.push({name: 'js' + i, age: 18 + i}) } db.person.insertMany(arr); MongoD 阅读全文
posted @ 2022-01-23 20:14 霸哥yyds 阅读(44) 评论(0) 推荐(0)