canvasToTempFilePath:fail invalid viewId | 您所在的位置:网站首页 › canvastotempfilepath › canvasToTempFilePath:fail invalid viewId |
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 实验室设备网 版权所有 |