PhoneGap camera.getPicture 能否实现像微信一样选择多个图片
如题,要做个一个图片上传功能,用的是 navigator.camera.getPicture(),但是每次只能取到一个照片。
能不能做成像微信那样,选择多个照片啊。
navigator.camera.getPicture(onSuccess, onFail, {
destinationType:Camera.DestinationType.DATA_URL,
sourceType:Camera.PictureSourceType.PHOTOLIBRARY,
allowEdit:false,
targetWidth:imgWidth,
targetHeight:imgHeight,
mediaType:Camera.MediaType.PICTURE
});
function onSuccess(imageData) {
image.src = "data:image/jpeg;base64," + imageData;
}
function onFail(message) {
if(message !="Selection cancelled."){
showMessage("图片取得失败");
}
}