摘要: <template> <view> <canvas id="myCanvas" :style="{ width: '200px', height: '200px' }"></canvas> </view> </template> <script> export default { onReady() 阅读全文
posted @ 2023-07-31 19:52 叶乘风 阅读(583) 评论(0) 推荐(0) 编辑
摘要: methods: { drawPoster() { const ctx = uni.createCanvasContext('canvas', this); // 设置字体样式 ctx.setFontSize(20); ctx.setTextAlign('center'); ctx.setTextB 阅读全文
posted @ 2023-07-31 13:36 叶乘风 阅读(2065) 评论(0) 推荐(0) 编辑