上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 129 下一页
摘要: 一 发新版本导致 问题的根源是服务器js文件更新了,页面还在请求以前的js文件。可以保留之前webpack打包的文件,但是时间久了文件体积会积累到很大,而且从产品角度更希望用户访问新的资源。所以最好的解决方式是在报错时给用户提示,用户点击确认后刷新页面。前端如何能catch到这种错误? 目前还没找到 阅读全文
posted @ 2023-02-16 09:20 ThisCall 阅读(2355) 评论(0) 推荐(0)
摘要: 单纯判断是否包含 var arr = [ { key:1, name: '牛百叶' }, { key:2, name: '虾滑' } ]; // bool 为true说明数组中包含这个对象 为false则不包含 var bool1 = arr.some(item=> item.name == '虾滑 阅读全文
posted @ 2023-02-03 15:53 ThisCall 阅读(805) 评论(0) 推荐(0)
摘要: 地址1 地址2 阅读全文
posted @ 2023-01-11 10:27 ThisCall 阅读(69) 评论(0) 推荐(0)
摘要: this.$nextTick(() => { this.$refs.navBox.scrollTop = 0; }); 或 this.$nextTick(() => { let scrollElem = this.$refs.scrollDiv; scrollElem.scrollTo({ top: 阅读全文
posted @ 2022-12-06 17:07 ThisCall 阅读(568) 评论(0) 推荐(0)
摘要: html, body, #app, .wrapper { width: 100%; height: 100%; /* overflow: hidden; */ -webkit-filter : grayscale(100%); -moz-filter: grayscale(100%); -o-fil 阅读全文
posted @ 2022-12-01 09:47 ThisCall 阅读(82) 评论(0) 推荐(0)
摘要: 新开的窗口 created () { // 监听页面关闭 window.onbeforeunload = this.beforeDestroyFn; }, methods: { beforeDestroyFn () { console.log('shaqk') window.opener.postM 阅读全文
posted @ 2022-11-28 17:06 ThisCall 阅读(254) 评论(0) 推荐(0)
摘要: <van-field clickable name="XXXX" is-link readonly :value="statusValue" placeholder="请选择是否油库" @click="showStatusFn" :rules="[{ required: true, message: 阅读全文
posted @ 2022-11-22 18:04 ThisCall 阅读(3027) 评论(0) 推荐(0)
摘要: downloadFile(url, "xxxx票APP.jpg"); // fileRealPath 文件全路径 // fileName 文件名带格式的 export function downloadFile(fileRealPath, fileName) { let link = documen 阅读全文
posted @ 2022-11-04 11:48 ThisCall 阅读(196) 评论(0) 推荐(0)
摘要: 调用 this.$download.url('/api/v1/org/question/exportData', datVal, `${this.questMess.name}.xlsx`); js文件 import { saveAs } from 'file-saver' import axios 阅读全文
posted @ 2022-11-04 11:38 ThisCall 阅读(268) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 129 下一页