我想要图库图像并将该图像路径设置为可从我的应用程序的背景使用的变量

'我正在使用一个插件来恢复图像的正常工作。但我想要的实际路径   我要分配一个div的图像。我怎么得到的。'

 takePicture(sourceType: PictureSourceType) {
    // tslint:disable-next-line:prefer-const
    let options: CameraOptions = {
      quality: 100,// tslint:disable-next-line:object-literal-shorthand
      sourceType: sourceType,allowEdit: true,saveToPhotoAlbum: false,correctOrientation: true,destinationType: this.camera.DestinationType.FILE_URI,};
    this.camera.getPicture(options).then(imagePath => {
      }
    });
  }
zouminfeng 回答:我想要图库图像并将该图像路径设置为可从我的应用程序的背景使用的变量

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3022107.html

大家都在问