我有一個問題,科爾多瓦的相機插件。科爾多瓦相機插件錯誤與destinationType選項
當我寫destinationType: Camera.DestinationType.DATA_URL
或「FILE_URI」在getPicture()
的選擇,我有這樣的錯誤:
[phonegap] [console.error] TypeError: Cannot read property 'DATA_URL' of undefined [phonegap] at d.e.takePicture (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:13:13609) [phonegap] at fn (eval at (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:11:32101), :2:224) [phonegap] at i (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:12:18522) [phonegap] at d.$eval (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:10:20470) [phonegap] at d.$apply (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:10:20696) [phonegap] at HTMLButtonElement. (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:12:18574) [phonegap] at HTMLButtonElement.Gt.n (file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/js/app.min.js:8:30670)
如果我不正確寫這個選項,相機推出,但我不能擁有的網址IMG。
感謝
您正在使用的PhoneGap構建?無論如何,試試這個:)你的運氣... destinationType:navigator.camera.DestinationType.DATA_URL –
destinationType:navigator.camera.DestinationType.DATA_URL工作!謝謝 – epworthhh