jsp部分:
<button class='search-button btn btn-primary ' type="button"
οnclick="loadFile('Check')">
<i class='fa fa-hand-pointer-o'></i>上传催记
</button>
<div id="promise_info_model1"
style="margin: 55px 15px 15px 15px; display: none">
<input type ="file" name="file" id="file" />
<br/>
<input type="button" value="开始上传" class="btn btn-xs" οnclick="FileUpLoad()" style="margin-right: 10px">
</div>
js部分:
function loadFile(data) {
initTable1.modal1();
}
var initTable1={
modal1:function(){
models = layer.open({
type : 1,
shade : 0.6,
shadeClose : true,
maxmin : true,
anim : 3,
title : '上传文件',
area : [ '30%', '30%' ], // 宽高
success:function(layero, index){
$("#remark").val("");
},
content : $('#promise_info_model1')
});
}
}
function FileUpLoad() {