{"type":"error","bubbles":false,"cancelBubble":false,"cancelable":false,"lengthComputable":false,"loaded":0,"total":0,"target":{"fileName":"/storage/emulated/0/Pictures/Screenshots/Screenshot_20210623-114554883.png","readyState":2,"result":null,"error":{"code":10,"message":"执行出错"},"onloadstart":null,"onprogress":null,"onload":null,"onabort":null}}
代码是
var reader = new plus.io.FileReader();
reader.onloadend = function (e) {
console.log('文件读取完成!'+JSON.stringify(e));
};
reader.onerror = function (e){
console.error(JSON.stringify(e))
};
reader.readAsDataURL(res.target);
0 个回复