- ios的微信小程序无法使用wx.canvasToTempFilePath,在安卓就没问题,该咋办?
saveImage() { var that = this const [data, w, h] = screenshot(renderer, scene, camera, WebGLRenderTarget); const ctx = helperCanvas.getContext('2d') const imgData = helperCanvas.createImageData(data, w, h); helperCanvas.height = imgData.height; helperCanvas.width = imgData.width; ctx.putImageData(imgData, 0, 0); const imgDataFromCanvas = ctx.getImageData(0, 0, w, h) const hasPixel = imgDataFromCanvas.data.some(i => i !== 0) wx.canvasToTempFilePath({ canvas: helperCanvas, success(res) { // 文件临时路径 const local_path = res.tempFilePath const url = that.goto_uploadfile(local_path); that.useing_show.image_url = url; that.add_try_log(); // that.change_load(false); }, fail(err) { console.log("错误", err); } }) },
07-23 - 微信小程序在真机调试的时候,相同的功能代码安卓没问题ios确不能用,这个咋办?
使用的uniapp开发的,编译到小程序上,真机测试ios好多功能不能使用
07-22 - uniapp 的 小程序 ios?
uniapp 做的小程序,编译测试到 ios 就出现代码缺失,好多功能不能用,该咋办!安卓就没事
07-19