我正在使用下面的代码,
navigator.camera.getPicture(failed, completed, { destinationType: Camera.DestinationType.DATA_URL });
function completed() {
alert('got it');
}
function failed() {
alert('Failed to get the photo');
}
它总是到达失败功能。我错过了任何许可吗?
我正在使用下面的代码,
navigator.camera.getPicture(failed, completed, { destinationType: Camera.DestinationType.DATA_URL });
function completed() {
alert('got it');
}
function failed() {
alert('Failed to get the photo');
}
它总是到达失败功能。我错过了任何许可吗?