// Called when a photo is successfully retrieved
//
function onPhotoURISuccess(imageURI) {
// image file URI
var largeImage = document.getElementById('largeImage');
largeImage.style.display = 'block';
//使用image file URI 直接赋值就可以了
largeImage.src = imageURI;
}
// 第一个按钮调用函数
function capturePhoto() {
navigator.camera.getPicture(onPhotoDataSuccess, onFail, {quality: 50});
}