JAVA日报
ajax上传文件示例代码
$.ajax({
type : "POST",
processData: false,
contentType: false,
url : "UpLoadExcelServlet?method=addfile",
data: file,
success : function(data) {
alert("请求chenggong");
},
error : function() {
alert("请求失败");
},
});