<form id="importBookForm" action="uploadReadBook.action" encType="multipart/form-data" method="post" target="hidden_frame">
<input id="myFile" name="myFile" type="File" /></a>
<input id="submit" class="btn" type="submit" value="上传">
</form>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>
$('#hidden_frame').load(function(){
var text=$(this).contents().find("body").text();
// 根据后台返回值处理结果
var j=$.parseJSON(text);
if(j.status!=0) {
alert(j.msg);
} else {
alert('上传成功');
//location.href='BookResourceList.jsp'
}
});