3***@qq.com
3***@qq.com
  • 发布:2024-07-23 02:15
  • 更新:2024-07-23 08:54
  • 阅读:595

uni.compressImage 压缩图片时出错 uni.compressImage is not a function.各位大老,这个是什么问题呀

分类:HBuilderX

//压缩图片
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"}

2024-07-23 02:15 负责人:无 分享
已邀请:
爱豆豆

爱豆豆 - 办法总比困难多

你在那个端使用的uni.compressImage?

3***@qq.com

3***@qq.com (作者)

使用明细信息见附件。

  • 爱豆豆

    运行的那个端?小程序?h5? app?

    2024-07-23 08:40

Blog1221

Blog1221

这个不支持h5端

要回复问题请先登录注册