我在用下面的代码,
navigator.camera.getPicture(failed, completed, { destinationType: Camera.DestinationType.DATA_URL });
function completed() {
alert('got it');
}
function failed() {
alert('Failed to get the photo');
}它总是到达失败函数。我错过什么许可了吗?
发布于 2013-09-15 20:08:08
您将错误回调传递给成功,成功回调传递给错误。
您正在获得正确的回调,但它按照您所提供的调用失败,
navigator.camera.getPicture(completed, failed, { destinationType: Camera.DestinationType.DATA_URL }); https://stackoverflow.com/questions/18816964
复制相似问题