|
[开发工具]
ios 下无法查看 api.download 下载的文件
[复制链接]
- api.download({
- url: url,
- savePath: "fs://1.jpg",
- report: false,
- cache: true,
- allowResume: false
- }, function(ret, err) {
- console.log(ret.savePath)
- })
复制代码 url 是后端的接口,返回的数据格式是
- String code;
- String message;
- Object data; //文件数据
- String path;
复制代码
根据 ret.savePath 查看文件,在安卓下可以用,ios 不得行,这是什么原因呀。
|
|