function getImage() {
var c = plus.camera.getCamera();
c.captureImage(function(e) {
plus.io.resolveLocalFileSystemURL(e, function(entry) {
var s = entry.toLocalURL() + "?version=" + new Date().getTime();
console.log(s);
upload(s);
// doc.getElementById("id_front_img").src = s;
//变更大图预览的src
//目前仅有一张图片,暂时如此处理,后续需要通过标准组件实现
// doc.querySelector("#mui-imageviewgroup .mui-slider-item img").src = s + "?version=" + new Date().getTime();
}, function(e) {
console.log("读取拍照文件错误:" + e.message);
});
}, function(s) {
console.log("error" + s);
}, {
filename: "_doc/head.jpg"
});
}
meijj522
- 发布:2016-01-20 11:07
- 更新:2019-05-09 21:51
- 阅读:1920
1 个回复
DCloud_heavensoft
iOS 内存不足引发wkwebview白屏的问题,参考:https://ask.dcloud.net.cn/article/35913