摘要: 第一步: 网上下载字体文件 我用的微软雅黑如:msyh.ttf 注意必须是 *.ttf后缀的 第二步: 打开项目的node_modules->pdfmake 创建/examples/fonts 文件夹, 把字体库拷贝到examples/fonts 然后在目录node_modules->pdfmake 阅读全文
posted @ 2024-04-25 18:08 James2019 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 很好用的一个js库:https://github.com/mebjas/html5-qrcodedemo: https://scanapp.org/ demo: https://blog.minhazav.dev/research/html5-qrcode vue项目推荐用这个:https://zh 阅读全文
posted @ 2023-12-04 18:07 James2019 阅读(194) 评论(0) 推荐(0) 编辑
摘要: https://mozilla.github.io/pdf.js/web/viewer.html . 阅读全文
posted @ 2022-10-19 18:05 James2019 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 不是出身,不是皮囊,而是做人做事有格局。正如曾国藩所说:“谋大事者,首重格局。” 有格局的人,思想有高度,人品有厚度。 格局小的人,做事没水准,做人没远见。 胸有格局的人,怀善心,行好事,能体谅他人的不易。善因结善果,善待别人就是在成全自己。 所谓格局,就是人间事再苦再难,都能对身边人怀揣善意。 人 阅读全文
posted @ 2022-10-14 16:33 James2019 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1. 放在方法里 const nameToCode = async (nameArr) => { const promiseArr = []; for (const itemName of nameArr) { const promise = new Promise((resolve, reject 阅读全文
posted @ 2022-09-16 19:21 James2019 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 文档地址 (中文) Day.js 是一个轻量的 JavaScript 时间日期处理库,和 Moment.js 的 API 设计保持完全一样. 如果你曾经用过 Moment.js, 那么你已经知道如何使用 Day.js Day.js 基本用法如下,相同的API,相同的链式操作。 dayjs().sta 阅读全文
posted @ 2022-08-18 16:40 James2019 阅读(1932) 评论(0) 推荐(0) 编辑
摘要: nest-typeorm学习:数据库实体设计与操作 https://blog.csdn.net/weixin_44828005/article/details/116435758 阅读全文
posted @ 2022-07-30 22:43 James2019 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 高手总结的文档:https://www.zhangxinxu.com/wordpress/2014/08/so-powerful-svg-smil-animation/ 在线工具:https://editor.method.ac 阅读全文
posted @ 2022-07-29 10:40 James2019 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 以下demo,测试地址 <!DOCTYPE html><html><head><meta charset="utf-8"><title>HTML canvas getImageData()方法使用-基础教程(nhooo.com)</title></head><body><canvas id="myC 阅读全文
posted @ 2022-06-02 18:35 James2019 阅读(488) 评论(0) 推荐(0) 编辑
摘要: // 横屏写的,坚屏展示,需旋转270度 rotateBase64Img(src: any, callback: any) { const canvas = document.createElement('canvas') const ctx: any = canvas.getContext('2d 阅读全文
posted @ 2022-06-02 18:25 James2019 阅读(164) 评论(0) 推荐(0) 编辑