报告一个写错的
发布于 5 年前 作者 yongliang 4660 次浏览 来自 问答

https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html

wx.chooseImage({
  count: 1,
  sizeType: ['original', 'compressed'],
  sourceType: ['album', 'camera'],
  success (res) {
    // tempFilePath可以作为img标签的src属性显示图片
    const tempFilePaths = res.tempFilePaths
  }
})
tempFilePath

这个地方是不是应该修改为 tempFilePaths

少了一个 s

1 回复

你好,感谢反馈,我们核实下

回到顶部