-
Notifications
You must be signed in to change notification settings - Fork 0
/
addBen.html
31 lines (30 loc) · 996 Bytes
/
addBen.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>增加出本项目</title>
<script src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" language="JavaScript">
$(function(){
$('#fileUp').change(function(){
$('#uploadLog').html('开始上传..');
$('formFile').submit();
});
})
function uploadSuc(msg){
if(msg.split('|').length>1){
$('#imgShow').attr('src',msg.split('|')[1]);
$('#uploadLog').html(msg);
}
}
</script>
</head>
<br>
<form id='formFile' name='formFile' method="get" action="../benServlet" target="frameFile" enctype="multipart/form-data">
<input type="file" id="fileUp" name="fileUp"/>
<div id="uploadLog"></div><br>
<img width="200" src=""height=""id="imgShow"alt="缩略图"/>
<input type="submit" name="确认"/>
</form>
</body>
</html>