plus.zip.compressImage({
src: entry.toLocalURL(),
dst: entry.toLocalURL(),
overwrite: true,
format: "jpg",
quality: 80
}, function(zip) {
if(zip.size > (1 1024 1024)) {
return mui.toast('文件超大,请调整相机重新拍照');
}
}, function(zipe) {
mui.toast('压缩失败!')
});
Android Studio打包后运行到这就闪退,用Hbuilder就没问题
0 个回复