有一篇文章写的有点问题,现在改正。上代码(代码仅供参考)
if(!downloader){alert("下载失败!");};var headJson = {'X-Access-Token': token,'contentType': "application/json",};var ret = uexDownloaderMgr.setHeaders(downloader, JSON.stringify(headJson));//头部var serverURL = exportXzmb+"?id="+ xzmb; //下载的地址 服务器路径+pdf文件Idvar downPath = null;//保存的地址if(equipmentType == "android"){//安卓下载到根目录下//downPath = "/storage/emulated/0/Downlad/" + pathdownPath = "wgt://storage/emulated/0/" + mbcm + '.xls' //mbcm 获取的pdf名称}