JAVA日报

ajax上传文件示例代码

$.ajax({
type : "POST",
processData: false,
contentType: false,
url : "UpLoadExcelServlet?method=addfile",
data: file,
success : function(data) {
alert("请求chenggong");
},
error : function() {
alert("请求失败");
},
});

posted @ 2021-11-04 22:11  我的未来姓栗山  阅读(23)  评论(0编辑  收藏  举报