摘要: 参考:https://blog.csdn.net/xiasohuai/article/details/80663739 https://blog.csdn.net/qq_33718889/article/details/92696145 阅读全文
posted @ 2024-04-18 10:18 张闲生 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 上传加载不全展示图: 使用压缩图片加载完全之后: 压缩图片大小方法: 在Vue中压缩上传的图片大小,可以使用canvas元素来重新编码图片。以下是一个简单的示例,展示了如何压缩图片并上传: 实际应用: 代码参考: <template> <div> <input type="file" @change 阅读全文
posted @ 2024-04-17 09:23 张闲生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Chrome跨域问题:has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private 已被COR 阅读全文
posted @ 2024-04-16 11:14 张闲生 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_40004867/article/details/129835446?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault% 阅读全文
posted @ 2024-04-15 09:21 张闲生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1、js数据类型有哪几种?分别有哪些?这两种数据类型有什么区别? 参考:https://blog.csdn.net/weixin_53248676/article/details/123509676 参考:https://blog.csdn.net/weixin_43664588/article/d 阅读全文
posted @ 2024-04-07 19:43 张闲生 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 像有这种tab标签页的,实际上页面跳转到其他页面后,页面组件没有销毁,而是被缓存了起来,所以要用到activated和deactivated两个生命周期钩子函数 且这两个生命周期执行顺序在mounted之后 所以代码执行可写为如下所示: 参考:https://blog.csdn.net/weixin 阅读全文
posted @ 2024-03-15 17:30 张闲生 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 左边vue2,右边vue3 阅读全文
posted @ 2024-03-06 14:13 张闲生 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 例如: 参考:https://www.jb51.net/javascript/293482fw0.htm 阅读全文
posted @ 2024-01-24 09:53 张闲生 阅读(7) 评论(0) 推荐(0) 编辑
摘要: //剪切原原始曲线 getSplitTend() { const timeCompare = [] this.trendOption.series[0].data.forEach(item => { timeCompare.push(item[0]) }) // console.log('timeC 阅读全文
posted @ 2024-01-24 09:32 张闲生 阅读(75) 评论(0) 推荐(0) 编辑
摘要: <el-table :data="tableData" border @cell-click="cellclick" :cell-style="tableCellStyle"> </el-table> data(){ row:'', column:'' } cellclick (row, colum 阅读全文
posted @ 2024-01-23 17:37 张闲生 阅读(51) 评论(0) 推荐(0) 编辑