MigrationFilePack.jsp
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<html>
<script type="text/javascript" src="/system/upgradetoe9/js/jquery-1.8.3.min_wev8.js"></script>
<iframe name="downiframe" id="downiframe" src="" style="display:none" ></iframe>
<body>
</body>
<script type="text/javascript">
function packfile(){
$.ajax({
url:'MigrationFilePackOperation.jsp',
type:'post',
dataType:"json",
data: {
'method': "packfile"
},
success:function(data){
if(data.status==0){
alert(data.msg);
}else{
alert("打包文件成功,开始下载");
downDoc();
}
}
});
}
//文件下载的方法
function downDoc() {//执行文件下载,文件实际的路径的名字,文件下载的名字
document.getElementById("downiframe").src = "/filesystem/scanecologyzip.zip";
}
// $("document").ready(function () {
//
// });
window.onload = function(){
packfile();
}
</script>
</html>