|
本帖最后由 munyi 于 2016-11-28 17:07 编辑
api.imageCache({
url : 'http://a.hiphotos**.**/image/w%3D400/sign=2abe1c77d4ca7bcb7d7bc62f8e086b3f/64380cd7912397ddf9f4bdb05a82b2b7d1a287f0.jpg'
}, function(ret, err) {
var url = ret.url;
var ss = $api.dom(".icon");
alert(url)
$api.attr(ss, "src", url);
});
api.download({
url : 'http://img1**.**/gif/more/11/201206/a5194ba8c27b17def4a7c5495aba5e32.jpg',
savePath : 'fs://sound/123.jpg',
report : true,
cache : true,
allowResume : true
}, function(ret, err) {
if (ret.state == 1) {
var ss = $api.dom(".icon");
alert(ret.savePath)
$api.attr(ss, "src", ret.savePath);
} else {
}
});
像这样是没有问题的。
|
|