URI编码 将中文或者链接地址进行utf-8编码

document.write(encodeURI("http://www.w3school.com.cn/My first/")+ "<br />")
document.write(decodeURI(decodeURI(decodeURI(decodeURI(encodeURI(encodeURI(encodeURI("http://www.w3school.com.cn/My first/"))))))))

plus.downloader.createDownload();封装了完整的下载,不能下载file download发出的流文件

可以下载完整的url网络资源,但是网络资源必须进行encodeURI()

var url = request_url + '/assets/courseware/' + encodeURI(fileName);

原文地址:https://www.cnblogs.com/lhang55/p/8038196.html