Open mingzepeng opened 7 years ago
Fetch body does not support object
. https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Body
抱歉,我没有表述清楚我的意思,空对象是不被支持的,但你的库则会直接报错, 而不是被忽略 在 win10 chrome 58.0.3029.81 和 firefox 53 上
fetch('./',{method : 'POST',body:{}})
上述代码仍然会产生请求,只不过 body 部分被忽略了,fetch 请求仍然会正常进行。
this code may cause "unsupported BodyInit type" error because of below code from fetch-ie8 source