汐小熹
汐小熹
  • 发布:2020-06-17 15:37
  • 更新:2020-06-17 15:37
  • 阅读:800

canvasToTempFilePath IOS H5端无法显示图片

分类:uni-app

ctx.draw(true, () => {
alert(1) //此处弹出了
uni.canvasToTempFilePath({
canvasId: 'testCanvas',
// fileType: 'jpg',
// quality: 0.5,
success: function(res) {
alert(9999)
that.cardImg = res.tempFilePath
uni.hideLoading();
},
fail: function(err) {
alert(err)
// uni.hideLoading();
},
complete: function(err) {
alert(3)
}
})

            })  

就1弹出 后面都没有进入 是什么情况

2020-06-17 15:37 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复