window.resolveLocalFileSystemURI(imageURI, function(fileEntry) {
      fileEntry.file(function(fileObj) {
            console.log("Size = " + fileObj.size);
      });
});

麻烦的要命  FIle对象也不new一下,然后构造加入ImageURI,直接取到Fileobj,NND

 

引文:http://stackoverflow.com/questions/11993043/cordova-phonegap-photo-file-size

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2021-09-28
  • 2021-09-22
  • 2021-12-08
  • 2021-10-08
  • 2021-11-21
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2018-02-02
  • 2021-06-22
相关资源
相似解决方案