'我正在使用一个插件来恢复图像的正常工作。但我想要的实际路径 我要分配一个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 => {
}
});
}