有带+号的作业无法打包下载的问题

This commit is contained in:
guange 2015-06-24 16:07:54 +08:00
parent 358c344ca5
commit 81187dea36
1 changed files with 2 additions and 1 deletions

View File

@ -880,7 +880,8 @@ $(function(){
} }
if(res.length==1){ if(res.length==1){
location.href = '/zipdown/download?file='+res[0].file;return; var file = encodeURI(res[0].file).replace(/\+/g, '%2B');
location.href = '/zipdown/download?file='+file;return;
} }
document.getElementById('light').style.display='block'; document.getElementById('light').style.display='block';