- wxfile://tmp开头的临时图片画在画布上,保存画布的时候为啥没有临时图片
saveImage() { wx.canvasToTempFilePath({ canvasId: 'canvas', success(res) { wx.saveImageToPhotosAlbum({ filePath: res.tempFilePath, success(res) { wx.showToast({ title: '保存成功', icon: 'success'
2019-07-18 - wx.canvasToTempFilePath返回图片显示空白
<imageclass="tcimg2"src="http://tmp/wx38741ad4ac64c5a1.o6zAJs6r9PXtqgDTdmxo91Dpyf_o.T1gcYflQPPHF4eb6460ab93a7ae1978320dda45af1eb.png"role="img"></image>
2019-07-17 - 调用wx.canvasToTempFilePath报错显示'canvasId'
Cannot read property 'canvasId' of undefined; at wx.canvasToTempFilePath TypeError: Cannot read property 'canvasId' of undefined at An (WAService.js:1:428255) at Object.Mn [as canvasToTempFilePath] (WAService.js:1:428896) at Object.<anonymous> (WAService.js:1:271002) at Object.<anonymous> (WAService.js:1:851323) at Function.<anonymous> (WAService.js:1:851453) at Object.<anonymous> (WAService.js:1:256943) at ye.canvasToTempImage (http://127.0.0.1:60152/appservice/pages/mymain/mymain.js:226:6) at Function.(http://127.0.0.1:60152/appservice/pages/mymain/mymain.js:221:11) at WAService.js:1:101748 at WAService.js:1:89930 <canvas canvas-id="canvas" class="hbcanvas" hidden="true"></canvas> <canvas canvas-id="mycanvas" class="hbcanvas" hidden="true"></canvas>
2019-07-16