试了好几种图片裁剪插件,在安卓系统中都是可以正常使用的,但是ios中全部都不可用,请问是跟小程序自身环境有关系吗
wx.canvasToTempFilePath({ canvasId: id, x: x, y: y, width: width, height: height, destWidth: width / deviceRadio, destHeight: height / deviceRadio,success: function success(res) {console.log(‘success’); typeof args[args.length - 1] === ‘function’ && args[args.length - 1](res.tempFilePath); },fail: function fail(res) {console.log(‘fail’);console.log(res);} });break;