海报 canver html2canvas
海报 canver html2canvas
莫元涵
程序开发就像是搭积木,有时候需要换来换去才能让代码完美无缺。而有时候代码出现了奇怪的bug,就像是一个调皮的小精灵在捣蛋一样。
展开
-
【VUE】html2canvas 在IOS系统13.4以上失效的问题解决方法
一、问题描述最近在开发 html2canvas 的时候,突然发现,html2canvas在IOS13.4.1系统中调用失败。后马上去github上查看是否有同道中人遇到类似问题。参考链接:https://github.com/niklasvh/html2canvas/issues/2229二、解决方案1.首先将 package.json 中的 html2canvas 版本降低为【1.0.0-rc.4】版本降低方法首先移除 html2canvas 【npm uninstall html2canva转载 2020-08-19 10:29:16 · 1914 阅读 · 0 评论 -
【微信小程序】canvas 文字断行和省略号显示
wxml:<canvas canvas-id='mycanvas' id='mycanvas'></canvas>canvas肯定要一个画板容器啦,记得设置宽高哦,小程序中默认宽高是300px和150pxjs:在page中//处理文字多出省略号显示 dealWords: function (options) { options.ctx.setFontSize(options.fontSize); // 设置字体大小 var allRo原创 2020-11-09 16:12:45 · 460 阅读 · 0 评论