if(xsxszp.status == 200) {
//alert(xsxszp.response)
//$id('xszp').src=xsxszp.response
plus.io.resolveLocalFileSystemURL(
'_downloads/userInfo.JPG',
function(entry) {
//entry.getFile('_downloads/userInfo.JPG', '','' , '')
entry.createWriter(function(writer) {
writer.onwrite = function(e) {
//$id('xszp').src = '_downloads/userInfo.JPG'
plus.console.log("Write data success!");
};
writer.seek(0);
writer.write(xsxszp.response);
}, function(e) {
alert(e.message);
})
}
)
}
2 个回复
wenju - https://www.mescroll.com -- 精致的下拉刷新和上拉加载组件
DCloud_heavensoft
为何不用plus的download api下载图片到本地?