会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欧黎萬
博客园
首页
新随笔
联系
订阅
管理
2022年7月19日
前端大屏相关自适应
摘要: 前端页面需要适配大屏,满足不同分辨率,这一种方法是大屏内容可以跟着浏览器页面缩小而缩小 1、下载 lib-flexible,postcss-pxtorem npm i postcss-pxtorem@5.1.1 --save npm i lib-flexible 其中postcss-pxtorem推
阅读全文
posted @ 2022-07-19 08:31 每天都是鑫的媛
阅读(2143)
评论(0)
推荐(1)
2022年7月18日
echarts的resize不生效
摘要: pc屏幕大小变化,echart随着变化,官方有语法: window.addEventListener('resize',() => { // 根据窗口大小调整曲线大小 this.mCharts.resize() }) 但是实际上并没有生效 解决办法: 在给echart的div赋值大小时,不要用固定值
阅读全文
posted @ 2022-07-18 13:41 每天都是鑫的媛
阅读(1138)
评论(0)
推荐(0)
2022年6月17日
页面添加实时更新的时间
摘要: 每秒更新一次时间,即可 // 日期实时更新 this.addDate(); setInterval(() => { this.addDate(); // 获取当前时间 }, 1000); 方法: //获取当前年月日 addDate() { let date = new Date(); let yea
阅读全文
posted @ 2022-06-17 09:39 每天都是鑫的媛
阅读(168)
评论(0)
推荐(0)
2022年6月6日
cb() never called!错误成功解决
摘要: 亲试有效 针对 npm ERR! cb() never called! 问题 - F-dragon - 博客园 (cnblogs.com)
阅读全文
posted @ 2022-06-06 15:09 每天都是鑫的媛
阅读(953)
评论(0)
推荐(0)
2022年5月26日
el-table中行数据字段显示html
摘要: html: <el-table-column label="案件编号" align="center" prop="caseNumber" :formatter="caseNumberFormatter" show-overflow-tooltip > </el-table-column> js: c
阅读全文
posted @ 2022-05-26 15:07 每天都是鑫的媛
阅读(2225)
评论(0)
推荐(0)
elementui 中表格去除表格线以及添加背景
摘要: 修改背景色 <el-table :data="data" style="width: 95%;margin:0 auto" :header-cell-style="{ 'text-align': 'center' }" :cell-style="TableRowStyle" > <el-table-
阅读全文
posted @ 2022-05-26 08:42 每天都是鑫的媛
阅读(2682)
评论(0)
推荐(0)
2022年5月7日
vue中路由跳转后页面无数据问题
摘要: 路由参数改变,页面数据不更新解决方法: http://localhost:8080/#test?id=1 http://localhost:8080/#test?id=2,参数切换后,数据未更新 解决办法,亲测有效 watch: { '$route' (to, from) { this.$route
阅读全文
posted @ 2022-05-07 09:30 每天都是鑫的媛
阅读(700)
评论(0)
推荐(0)
2022年4月27日
vue中兄弟组件使用$emit会调用两次方法解决
摘要: 在兄弟组件中,A组件$emit时,B组件$on时,会触发两次方法,解决办法: 在B组件中使用 bus.$off(' 方法名') 即可解决
阅读全文
posted @ 2022-04-27 20:24 每天都是鑫的媛
阅读(1276)
评论(0)
推荐(0)
2022年3月14日
小球点击后抛物线移动
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
posted @ 2022-03-14 13:14 每天都是鑫的媛
阅读(24)
评论(0)
推荐(0)
2022年1月5日
在谷歌浏览器中添加vuedevtool的过程
摘要: (13条消息) 【插件工具】Vue.js is detected on this page. Open DevTools and look for the Vue panel报错及安装vue-detools_Umbrella_Um的博客-CSDN博客 亲测可用 另,如果出现在浏览器中查找vuetoo
阅读全文
posted @ 2022-01-05 10:33 每天都是鑫的媛
阅读(78)
评论(0)
推荐(0)
下一页
公告