开发工具wx.getImageInfo获取不到图片

发布于 7 年前作者 xiuyingliang14568 次浏览最后编辑 7 年前来自 ask
wx.chooseImage({
  success: function (res) {
    wx.getImageInfo({
      src: res.tempFilePaths[0],
      success: function (res) {        console.log(res.width)        console.log(res.height)
      }
    })
  }

})

开发工具中wx.getImageInfo返回的是fail

0 回复
暂无回复