js获取图片信息

网络图片:

fetch(item.path).then(function(res){ // 计算图片大小
  return res.blob()
}).then(function(data){
  console.log(data)
})

posted on 2019-09-12 11:27  王子乔  阅读(2932)  评论(0编辑  收藏  举报

导航