摘要: $RandomBgColor() { const r = Math.floor(Math.random() * 256) const g = Math.floor(Math.random() * 256) const b = Math.floor(Math.random() * 256) retur 阅读全文
posted @ 2020-09-01 15:12 _JZYU 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 原因:由于电脑显示的缩放引起的 解决:在 index.html 或 App.vue 文件(为了全局有效)的 style 标签中添加: body .el-table th.gutter{ display: table-cell!important; } ok 阅读全文
posted @ 2020-09-01 11:13 _JZYU 阅读(1660) 评论(0) 推荐(0) 编辑
摘要: 小三角 width:0; height:0; border-right:4px solid transparent; border-left:4px solid transparent; border-top:5px solid black; margin-left: 5px; 右箭头 width: 阅读全文
posted @ 2020-09-01 10:58 _JZYU 阅读(155) 评论(0) 推荐(0) 编辑
摘要: <view class="wx-popup" hidden="{{ flag }}" catchtouchmove="true" catchtap='onClose'> <view class='popup-container'> <view class="wx-popup-release-tip" 阅读全文
posted @ 2020-09-01 10:27 _JZYU 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 场景:在蒙层上滚动屏幕蒙层下的内容会跟着滚动; 解决: 在蒙层元素上添加事件: catchtouchmove="onCatchTouchMove" 定义事件:onCatchTouchMove() {} // 定义即可,无需任何操作 注意:pc端只能模拟鼠标点击拖动时是否有效,相当于手机的滚动;pc端 阅读全文
posted @ 2020-09-01 10:09 _JZYU 阅读(575) 评论(0) 推荐(0) 编辑
摘要: //声明一个pages使用getCurrentPages方法 const pages = getCurrentPages() //声明一个当前页面 const perpage = pages[pages.length - 1] //执行刷新 perpage.onLoad() 阅读全文
posted @ 2020-09-01 09:58 _JZYU 阅读(403) 评论(0) 推荐(0) 编辑
摘要: let days = new Date(2020,9,0).getDate(); 第一个参数是年份,第二个参数是月份,第三个默认0即可; 阅读全文
posted @ 2020-09-01 09:52 _JZYU 阅读(403) 评论(0) 推荐(0) 编辑