摘要: git 提交时报错 Some of your tasks use git add command. Please remove it from the config since all modifications made by tasks will be automatically added t 阅读全文
posted @ 2024-05-09 15:29 东八区 阅读(55) 评论(0) 推荐(0) 编辑
摘要: html2canvans 已在 version:1.0.0-rc.7解决。 https://github.com/niklasvh/html2canvas/issues/2356 阅读全文
posted @ 2024-04-22 17:59 东八区 阅读(7) 评论(0) 推荐(0) 编辑
摘要: e = typeof e 'string' ? e : e.toString(); const pattern = /(-?\d+)(\d{3})/; while (pattern.test(e)) { e = e.replace(pattern, '$1,$2'); } 123.12 => 123 阅读全文
posted @ 2024-04-15 16:32 东八区 阅读(3) 评论(0) 推荐(0) 编辑
摘要: borrowTiming(start, end) { return (start, end) => { start = dayjs(start); end = dayjs(end); let time = end.diff(start); //计算出相差天数 var days = Math.floo 阅读全文
posted @ 2024-04-15 13:36 东八区 阅读(3) 评论(0) 推荐(0) 编辑
摘要: numberToChinese(num) { return (num) => { var AA = new Array('零', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十'); var BB = new Array('', '十', '百', ' 阅读全文
posted @ 2024-04-15 10:20 东八区 阅读(2) 评论(0) 推荐(0) 编辑
摘要: const permission = { // 初始化状态 state: { // 处理应用程序权限请求 WRITE_EXTERNAL_STORAGE: false, ACCESS_FINE_LOCATION: false, CALL_PHONE: false, CAMERA: false, REC 阅读全文
posted @ 2023-12-19 15:22 东八区 阅读(1327) 评论(0) 推荐(0) 编辑
摘要: 工作表 aoa_to_sheet 将 JS 数据数组转换为工作表 json_to_sheet 将 JS 对象数组转换为工作表 table_to_sheet 将 DOM 表元素转换为工作表 sheet_add_aoa 将 JS 数据数组添加到现有工作表中 sheet_add_json 将 JS 对象数 阅读全文
posted @ 2023-12-05 11:22 东八区 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 安装 $ npm install xlsx 处理 import XLSX from 'xlsx'; /** * @param {string} data 文件名.xlsx */ export const read = (data, type, headerType=null) => { // 获取 阅读全文
posted @ 2023-11-29 11:11 东八区 阅读(166) 评论(0) 推荐(0) 编辑
摘要: let html2canvas = null; export default { beforeMount() { import('html2canvas').then((plugin) => { html2canvas = plugin.default; }); }, methods: { // 获 阅读全文
posted @ 2023-11-24 13:29 东八区 阅读(50) 评论(0) 推荐(0) 编辑
摘要: canvas 酷炫特效 + 小游戏https://github.com/poetries/canvas canvas-confetti 酷炫彩色纸屑动画效果https://www.kirilv.com/canvas-confetti/https://github.com/catdad/canvas- 阅读全文
posted @ 2023-11-22 13:16 东八区 阅读(97) 评论(0) 推荐(0) 编辑