文章來源:http://www.zghlxwxcb.cn/news/detail-605038.html
?只需要在使用uni.canvasToTempFilePath方法的時(shí)候添加上this就行了文章來源地址http://www.zghlxwxcb.cn/news/detail-605038.html
ctx.draw(false,()=>{
uni.canvasToTempFilePath({
canvasId: _that.ids,
success: (res) => {
console.log("-----------------------------")
console.log('filepath',res.tempFilePath);
}
},this)
})
到了這里,關(guān)于uniapp 小程序canvas uni.canvasToTempFilePath報(bào)錯(cuò) canvasToTempFilePath:fail fail canvas is empty的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!