1 2 3 4 5

07 2022 档案

摘要:记录一下前端优化手段,传送门:https://blog.csdn.net/m0_51060602/article/details/123324547 一、减少http请求数 1. 合并图片:当图片较多时,像精灵图,雪碧图可以合并为一张大图,从而减少http请求数。经常变化的图片可能不太合适,变化相对 阅读全文 »
posted @ 2022-07-23 20:43 $alute 阅读(218) 评论(0) 推荐(0) 编辑
摘要:原地址传送门: https://blog.csdn.net/m0_66083041/article/details/123860090 阅读全文 »
posted @ 2022-07-23 20:27 $alute 阅读(20) 评论(0) 推荐(0) 编辑
摘要:Vuex的辅助函数非常香,减少代码量 一共包含四个:mapState、mapGetters、mapActions、mapMutations 1.mapState 获取数据 import { mapState} from 'vuex' computed: { ...mapState(['data']) 阅读全文 »
posted @ 2022-07-14 10:41 $alute 阅读(106) 评论(0) 推荐(0) 编辑
摘要:附原文地址:https://blog.csdn.net/uloong9/article/details/120352454?spm=1001.2014.3001.5502 1.新建一个文件夹,并初始化本地库 git init 2.每次新的工程需要修改名字 git config --local use 阅读全文 »
posted @ 2022-07-14 10:24 $alute 阅读(28) 评论(0) 推荐(0) 编辑
摘要:记录:由于后端数据不能直接用于el-tree,在转换数据的时候树的层级不能确定于是采取递归解决 transformData(treeData) { let children = []; treeData.forEach((item, index) => { if (item.deepData && 阅读全文 »
posted @ 2022-07-14 09:57 $alute 阅读(461) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示