javascript - mui的downloader在ios中下载的中文文件名乱码,类似"男孩别a"这种乱码
ringa_lee
ringa_lee 2017-04-11 11:21:49
0
0
806

代码如下:
var dtask = plus.downloader.createDownload("http://192.168.1.36:8080/v1/file/download?file_name=" + encodeURI(filenames), {}, function(d, status) {
if(status == 200) { // 下载完成
console.log("文件地址", decodeURI(d.filename))
} else {
mui.toast("语音文件下载失败: " + status);
}
}).start();

ringa_lee
ringa_lee

ringa_lee

Antworte allen(0)
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage