07 2021 档案
摘要:vue开发时地址栏上的ip后面会跟着一个#号,如果想去掉这个井号,可以在路由上加上 mode: 'history', 即可去掉 //设置路由 const router = new VueRouter({ mode: "history", base: __dirname, routes: [ { pa
阅读全文
摘要:在项目中为了避免页面间样式污染常用scoped组件私有化,如果要改变element-ui的样式时需要用样式穿透才可复写样式。 1./deep/ 在vue3.0之前可使用,例如(复写样式前加/deep/),vue3.0及后使用就会报错 /deep/ .el-input { width: 60px; }
阅读全文
摘要:1.css 1)宽度固定 .vue-ellipsis{ overflow: hidden; //超出隐藏 white-space: nowrap; //不换行 text-overflow:ellipsis;//点点显示 } 2.substring截取字符串长度 如果遇到这种需要显示new,又不能换行
阅读全文