摘要: 需要在main.js中use一下 import UploadProgress from '@/components/UploadProgress/index.js' const app = createApp(App).use(UploadProgress) 使用 // 上传文件方法,$upload 阅读全文
posted @ 2023-08-17 17:12 奚奚奚 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1 // 保留小数几位 number:数字,n:保留几位小数, hint:数字为空时返回提示 2 export function getFloat(number, n, hint) { 3 if (!number) return hint || 0 4 n = n ? parseInt(n) : 0 阅读全文
posted @ 2023-08-17 16:59 奚奚奚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: startX: 0 开始的X轴位置 startY: 0 开始的Y轴位置 scrollY: true 滚动方向为 Y 轴 scrollX: true 滚动方向为 X 轴 click: true 是否派发click事件,通常判断浏览器派发的click还是betterscroll派发的click,可以用e 阅读全文
posted @ 2023-08-17 16:31 奚奚奚 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 正常跳转 阅读全文
posted @ 2018-08-10 17:08 奚奚奚 阅读(3823) 评论(0) 推荐(0) 编辑
摘要: _initScroll(){ this.$nextTick(() => { if (!this.scroll) { this.scroll = new BScroll(this.$refs.bscroll, { click: true, scrollY: true, probeType: 3 }); 阅读全文
posted @ 2018-08-10 16:26 奚奚奚 阅读(1487) 评论(0) 推荐(0) 编辑
摘要: phone(){ window.location.href = 'tel:123123'// 拨打电话 window.location.href = 'sms:123123'// 发短信 } 阅读全文
posted @ 2018-08-07 14:55 奚奚奚 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 1.安装node.js2.安装cnpmnpm install -g cnpm --registry=https://registry.npm.taobao.org // 淘宝镜像3.安装vuecnpm install vue4.安装vue-cli脚手架构建工具cnpm install --globa 阅读全文
posted @ 2018-08-04 16:12 奚奚奚 阅读(133) 评论(0) 推荐(0) 编辑