小程序定制开发compressImage里setData无效

微信小程序,微信公开课,小程序定制开发compressImage里setData无效 微信公开课

微信公开课小程序热门讨论关于「小程序定制开发compressImage里setData无效」的小程序开发问题
补充:wxcompressImage({src:restempImagePath,原图片路径quality:50,压缩质量,complete:compRes={consolelog(compRestempFilePath)thissetData({formcompImg:compRestempFilePath})}})con
展开:wxcompressImage({src:restempImagePath,原图片路径quality:50,压缩质量,complete:compRes={consolelog(compRestempFilePath)thissetData({formcompImg:compRestempFilePath})}})consolelog(compRestempFilePath)能打印出来正确的临时路径,但是往formcompImg里赋值就是一直时undefined即速小程序:that=thisthatsetData({:我是拍照后,对图片进行压缩再上传的onTakePhoto(){constctx=wxcreateCameraContext();ctxtakePhoto({quality:high,success:(res)={wxcompressImage({src:restempImagePath,原图片路径quality:50,压缩质量,complete:compRes={consolelog(compRestempFilePath)thissetData({formcompImg:compRestempFilePath})}})thissetData({src:restempImagePath,formimg:restempImagePath})consolelog(compImg:,thisdataformcompImg)consolelog(orignImg:,thisdataformimg)}})}
更多有关「小程序定制开发compressImage里setData无效」的讨论可以前往微信公开课小程序参与互动哦!了解更多

「小程序定制开发compressImage里setData无效」热门讨论订阅

微信小程序,微信公开课,小程序定制开发compressImage里setData无效
订阅小程序

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「小程序定制开发compressImage里setData无效」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「小程序定制开发compressImage里setData无效」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「小程序定制开发compressImage里setData无效」

微信公开课小程序热门讨论「小程序定制开发compressImage里setData无效」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「小程序定制开发compressImage里setData无效」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。