function deleceFj(attachid,attachfilename) {
var formData = new FormData();
formData.append("attachid", attachid);
formData.append("attachfilename", attachfilename);
console.log(formData);
$.ajax({
url: '<%=basePath%>events/deleceEventsfile',
type: "POST",
data: formData,
dataType: 'json',
processData: false,
contentType: false,
success: function (data) {
alert(data.key)
},
error: function (data) {
alert("错误!!");
}
}
JS代码是这样的,后端要怎么样才能取到这俩个值
var formData = new FormData();
formData.append("attachid", attachid);
formData.append("attachfilename", attachfilename);
console.log(formData);
$.ajax({
url: '<%=basePath%>events/deleceEventsfile',
type: "POST",
data: formData,
dataType: 'json',
processData: false,
contentType: false,
success: function (data) {
alert(data.key)
},
error: function (data) {
alert("错误!!");
}
}
JS代码是这样的,后端要怎么样才能取到这俩个值