摘要: css中减法的使用 width: calc(100px - 20px); div中的内容居中 .div1{ height: 100px; width: 100px; background-color: rgb(14, 151, 231); text-align: center;//水平居中 line 阅读全文
posted @ 2019-11-27 19:48 lipu1993 阅读(129) 评论(0) 推荐(0)
摘要: table表头背景颜色 :header-cell-style="{background:'#eef1f6',color:'#606266'}" 阅读全文
posted @ 2019-11-26 15:04 lipu1993 阅读(123) 评论(0) 推荐(0)
摘要: 返回上一页 this.$router.go(-1) 跳到指定页 this.$router.push('/') 阅读全文
posted @ 2019-11-25 20:08 lipu1993 阅读(126) 评论(0) 推荐(0)
摘要: 方法如下 npm install -g cnpm --registry=https://registry.npm.taobao.org 只后 cnpm -v 阅读全文
posted @ 2019-11-25 17:15 lipu1993 阅读(321) 评论(0) 推荐(0)
摘要: use db:进入或建立数据库(如果没有的话) db.集合.insert( ):插入数据 db.集合.find( ):查询所有数据 db.集合.findOne( ):查询第一个文件数据 db.集合.update({查询},{修改}):修改文件数据 show dbs :显示已有数据库 show col 阅读全文
posted @ 2019-11-22 18:12 lipu1993 阅读(95) 评论(0) 推荐(0)
摘要: 之前对router-view的理解一直有疑问,其实router-view会找到对应的路由进行渲染,并不会相互影响 从上到下渲染时遇到<router-view/>,则到路由设置中根据路径找到对应的组件进行渲染。 { path:"index", component:()=>import("@/compo 阅读全文
posted @ 2019-11-22 13:32 lipu1993 阅读(679) 评论(0) 推荐(0)
摘要: 克隆项目 git clone https://github.com/shanxilipu/lipuvuetest.git 添加修改后的neir git add a1.js 说明修改后的内容和提交 git commit -m '第三次'git push 阅读全文
posted @ 2019-11-22 12:15 lipu1993 阅读(86) 评论(0) 推荐(0)
摘要: 正常导入import {NavMenu} from 'element-ui';会报错 因此要 import {Menu,Submenu, MenuItem,MenuItemGroup} from 'element-ui'; Vue.use(Menu) Vue.use(Submenu) Vue.use 阅读全文
posted @ 2019-11-21 17:47 lipu1993 阅读(414) 评论(0) 推荐(0)
摘要: 用一台电脑可以ping通另一台电脑,但不能访问资源,关掉作为服务器电脑的防火墙即可。 阅读全文
posted @ 2019-11-21 10:45 lipu1993 阅读(453) 评论(0) 推荐(0)
摘要: 安装mongod的时候注意环境配置,否则出错 安装mongoose,启动mongoose为mongod npm install mongoose --save 另建文件建立Schema const mongoose = require("mongoose") const Schema = mongo 阅读全文
posted @ 2019-11-20 16:48 lipu1993 阅读(140) 评论(0) 推荐(0)