canvasToTempFilePath:fail invalid viewId 您所在的位置:网站首页 canvastotempfilepath canvasToTempFilePath:fail invalid viewId

canvasToTempFilePath:fail invalid viewId

2023-03-23 03:52| 来源: 网络整理| 查看: 265

https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.html

手机型号:iPhoneX

运行系统:IOS 15.4.1

微信版本:8.0.25

基础库版本:2.25.1

代码如下:

ctx.draw(false, (() => {             setTimeout( () => {                wx.canvasToTempFilePath({                     quality: 0.5,                     fileType: 'jpg',                     canvasId: 'firstCanvas',                     success: function (res) {                         wx.hideLoading()                         that.setData({ 'markPhoto': res.tempFilePath })                     },                     fail: function(error) {                         console.log('error', error)                     },                     complete (complete) {                         console.log('complete', complete)                     }                 }, that)             }, 100)         })())


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有