图片裁剪功能在ios中不可用
发布于 6 年前 作者 yanyong 11766 次浏览 来自 问答

试了好几种图片裁剪插件,在安卓系统中都是可以正常使用的,但是ios中全部都不可用,请问是跟小程序自身环境有关系吗

2 回复

 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;

你好,请具体描述问题出现的流程,并提供能复现问题的简单代码示例。

回到顶部