0

我使用 VueJS 并使用插件 vue-resource 发出请求,但我不知道为什么当我尝试使用 FormData 发送到服务器时,它在 IE11 中不起作用?

这是代码:

HTML:

<head>
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>

JS: 
    let data = new FormData();

    data.append('title', StringUtil.nullToString(title));
    data.append('description', StringUtil.nullToString(description));

    Vue.http.post('/api/v1/media-files/' + file.id, data).then(response => response.data);

你能帮助我吗?谢谢!

4

0 回答 0