test1.ts引入test2.ts文件
我怎么在test1中获取test2中某个方法的返回值
如:
test2是这样:
openAlbum(){
const options = {
quality: 100,
maximumImagesCount: 6,
};
let _this = this;
this.imagePicker.getPictures(options).then((results) => {
_this.uploader.pathArrayToDataURL(results,(dataurls)=>{
_this.imgArr.concat(dataurls);
});
}, (err) => { alert('failed') });
}
现在我要在test1中获取dataurls 怎么拿到