摘要: methods中添加 highlight(text) { const highlightStr = `<span class="active">${this.searchText}</span>` // 正则表达式 // 中间的内容都会被当作匹配字符串来使用,而不是数据变量 // 如果需要根据数据变 阅读全文
posted @ 2020-10-06 23:53 缔造cool 阅读(441) 评论(0) 推荐(0)
摘要: position: static :静态定位;是position的默认值,元素框正常生成,也就是没有定位时的正常显示。 就是不设置定位,取消 position: unset : unset 关键字我们可以简单理解为不设置。其实,它是关键字 initial 和 inherit 的组合。 什么意思呢?也 阅读全文
posted @ 2020-09-29 11:41 缔造cool 阅读(2105) 评论(0) 推荐(0)
摘要: /deep/ css深度选择器 Scoped CSS规范是Web组件产生不污染其他组件,也不被其他组件污染的CSS规范。这样在打包的时候会生成一个独一无二hash值,这样父组件的样式就不会影响到子组件了,然后你要想修改子组件的样式,一般是提取一个公共文件,在公共文件里面修改样式,但是这样也存在着一个 阅读全文
posted @ 2020-09-29 11:07 缔造cool 阅读(697) 评论(0) 推荐(0)
摘要: 功能是有一个总数组 一个分数组 分数组包含在总数组中,把总数组中和分数组不同的数组元素筛选出来 this.AllLIstcommend : 总数组 this.userChannel : 分数组 computed: { //计算属性 recommendChannele () { const chann 阅读全文
posted @ 2020-09-29 10:49 缔造cool 阅读(8063) 评论(0) 推荐(0)
摘要: position: static!important; 阅读全文
posted @ 2020-09-27 20:08 缔造cool 阅读(654) 评论(0) 推荐(0)
摘要: { "workbench.editor.enablePreview": false, //打开文件不覆盖 "search.followSymlinks": false, //关闭rg.exe进程 "editor.minimap.enabled": true, //关闭快速预览 "liveServer 阅读全文
posted @ 2020-09-23 10:02 缔造cool 阅读(415) 评论(0) 推荐(1)
摘要: 官方npm文档: https://www.npmjs.com/package/babel-plugin-transform-remove-console 下载安装: npm install babel-plugin-transform-remove-console --save-dev 安装之后在b 阅读全文
posted @ 2020-09-21 20:05 缔造cool 阅读(1328) 评论(0) 推荐(0)
摘要: //先引入nprogress import NProgress from 'nprogress' import 'nprogress/nprogress.css' //这个样式必须引入 在页面加载时触发 页面加载完成就取消 是放在axios全局请求中,main.js文件 axios.intercep 阅读全文
posted @ 2020-09-21 19:52 缔造cool 阅读(162) 评论(0) 推荐(0)
摘要: 1.生成打包报告 2.第三方库启用CDN 3.Element-UI组件按需加载 4.路由懒加载 5.首页内容定制 阅读全文
posted @ 2020-09-21 19:33 缔造cool 阅读(119) 评论(0) 推荐(0)
摘要: lodash.js 降低 array、number、objects、string 等等的使用难度从而让 JavaScript 变得更简单。非常适用于:遍历 array、object 和 string;对值进行操作和检测;创建符合功能的函数。 配置: (注意:这里是函数防抖的处理 并不是拷贝) cnp 阅读全文
posted @ 2020-09-21 19:24 缔造cool 阅读(225) 评论(0) 推荐(0)