Angular Content-Type数据格式设置2018-07-02 本文已影响23人 Valley4Z 图片格式的数据上传 选取图片后,用 FormData 格式将图片数据封装一下 请求的时候,设置的Content-Type: 'undefined' Content-Type-undefined格式.png 普通的对象格式数据传输 根据需要,可以设置为json,或txt Content-Type-json格式.png