//压缩图片
uni.compressImage({
src: "d://test03.jpeg",
quality: 80,
success: res => {
console.log(res.tempFilePath)
this.imgpath = res.target;
}
})
运行程序时出错,感觉很奇怪;
02:06:01.462 [TypeError] {message: "uni.compressImage is not a function"}

3***@qq.com
- 发布:2024-07-23 02:15
- 更新:2024-07-23 08:54
- 阅读:595
3 个回复
爱豆豆 - 办法总比困难多
你在那个端使用的uni.compressImage?
3***@qq.com (作者)
使用明细信息见附件。
爱豆豆
运行的那个端?小程序?h5? app?
2024-07-23 08:40
Blog1221
这个不支持h5端