我尝试在浏览器中测试我的离子图像上传应用程序,但由于我无法上传图像,因为cordova_not_available已显示在屏幕上,每次我点击上传按钮时都会弹出此错误 Cannot read property 'split' of undefined
在我的upload.ts我有这个
let filename = this.imagePath.split('/').pop();
这可能是因为您的变量 this.imagePath 为空或空...您如何获得该值?
this.imagePath
1 回答
这可能是因为您的变量
this.imagePath
为空或空...您如何获得该值?