会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ThisCall
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
129
下一页
2022年12月6日
移动端 H5 scrollTop 回到顶部
摘要: this.$nextTick(() => { this.$refs.navBox.scrollTop = 0; }); 或 this.$nextTick(() => { let scrollElem = this.$refs.scrollDiv; scrollElem.scrollTo({ top:
阅读全文
posted @ 2022-12-06 17:06 ThisCall
阅读(559)
评论(0)
推荐(0)
2022年12月1日
页面变灰
摘要: 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
阅读(67)
评论(0)
推荐(0)
2022年11月28日
关闭窗口 旧窗口刷新数据 addEventListener
摘要: 新开的窗口 created () { // 监听页面关闭 window.onbeforeunload = this.beforeDestroyFn; }, methods: { beforeDestroyFn () { console.log('shaqk') window.opener.postM
阅读全文
posted @ 2022-11-28 17:06 ThisCall
阅读(228)
评论(0)
推荐(0)
2022年11月22日
van-picker默认回显
摘要: <van-field clickable name="XXXX" is-link readonly :value="statusValue" placeholder="请选择是否油库" @click="showStatusFn" :rules="[{ required: true, message:
阅读全文
posted @ 2022-11-22 18:04 ThisCall
阅读(2977)
评论(0)
推荐(0)
2022年11月4日
download.js (实例3)下载
摘要: downloadFile(url, "电子作业票APP.jpg"); // fileRealPath 文件全路径 // fileName 文件名带格式的 export function downloadFile(fileRealPath, fileName) { let link = documen
阅读全文
posted @ 2022-11-04 11:47 ThisCall
阅读(185)
评论(0)
推荐(0)
download.js (实例2)下载
摘要: 调用 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
阅读(246)
评论(0)
推荐(0)
download.js (实例1)下载
摘要: import axios from 'axios' import { getToken } from '@/utils/util' // 文件流转blob对象下载 var baseURL = '' if (process.env.NODE_ENV == 'production') { baseURL
阅读全文
posted @ 2022-11-04 11:31 ThisCall
阅读(261)
评论(0)
推荐(0)
el-dialog 或dialog 封装 通过js控制
摘要: 1.通用组件封装dialogImg.vue <template> <div> <el-dialog v-show="isShow" :visible.sync="isShow" width="50%" @close="seePicUrl = ''" append-to-body style="tex
阅读全文
posted @ 2022-11-04 11:29 ThisCall
阅读(708)
评论(0)
推荐(0)
2022年11月1日
校验
摘要: 参考 一、input只能输入框只能输入正整数,输入同时禁止了以0开始的数字输入,防止被转化为其他进制的数值。<!-- 不能输入零时--><input type='text' οninput="value=value.replace(/^(0+)|[^\d]+/g,'')"> <!-- 能输入零时--
阅读全文
posted @ 2022-11-01 11:40 ThisCall
阅读(246)
评论(0)
推荐(0)
2022年10月18日
el-select change下拉获取对象
摘要: <el-select v-if="model" filterable class="w" v-model="ruleForm.allModelId" placeholder="请选择" @change="changeModel($event)" > <el-option v-for="item in
阅读全文
posted @ 2022-10-18 16:12 ThisCall
阅读(1530)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
129
下一页
公告