ajax 上传图片遇到的坑 var data = new FormData(); data.append("uploadFile", file); ajax要加这两个参数 processData: false,// 上传图片 contentType: false,// 上传图片