canvasToTempFilePath()安卓机根本不运行也不报错

发布于 6 年前作者 minzheng4953 次浏览最后编辑 6 年前来自 ask

var _this = this;

var children = _this.selectComponent(“#mapView”);

children.canvasToTempFilePath({

x: 0,

y: 0,

destWidth: 500,

destHeight: 500,

success: function (param) {

_this.setData({

mapImg: param.tempFilePath

})

}

}

wx.canvasToTempFilePath(opt, _this);

.canvasToTempFilePath()安卓机根本不运行也不报错

canvasToTempFilePath()安卓机根本不运行也不报错

1 回复
dzhu
dzhu1 楼4 年前

你好,请提供出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。