报告一个写错的

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

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 回复
kwen
kwen1 楼4 年前

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