后端需要传递表单数据时的处理方式 将普通数据转换为表单数据方法: let formData=new FormData() formData.append('fileName',fileName) formData.append('geoJson',JSONObject) // 传给后端 方法名(formData).then((res) => { console.log('返回值是:',res); }) .catch();