访问系统相返回值为一个对象,通过转换为字符串可以查看,path.files[0]为返回路径去除路径赋值到src

调用摄像头返回的相片的path为一个路径通过

plus.io.resolveLocalFileSystemURL(path, function(entry) { 
                var path = entry.toLocalURL(); 
                document.getElementById("headimg").src = path;

可以转换为和系统相册返回值一样的路径

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2022-01-24
  • 2021-07-20
  • 2022-02-17
  • 2021-12-02
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2021-12-26
  • 2021-11-28
相关资源
相似解决方案