|
apiready = function() {
api.download({
url: "http://**.**1.z0.glb**.**/apicloud/9add780c545817cfed5f8060ce9c5eb6.jpg",
savePath: 'fs://test1.png',
report: true,
cache: true,
allowResume: true
}, function(ret, err) {
if (ret.state == 1) {
} else {
}
});
};
function shareAction() {
var sharedModule = api.require('shareAction');
sharedModule.share({
type: 'image',
images: ['fs://test1.png'],
});
}
用这个代码再试试 |
|