var formData = new FormData($("#inputFileForm")[0]);
$.ajax({
type:'post',
url:webRoot+"/electronicContractUrl/webapp/uploadfile",
data:formData,
async: false,
cache: false,
contentType: false,
processData: false,//好像不可缺!
success:function(resultStr){
if($.trim(resultStr)!=""){
alert(resultStr);
}
}
});
参考博文:[b]一时没找到[/b]