1.安装兼容包:
npm install whatwg-fetch --save
2.webpack配置:
entry: {
app: [ 'babel-polyfill', 'whatwg-fetch', path.resolve(app, 'index.js')],
},
npm install whatwg-fetch --save
entry: {
app: [ 'babel-polyfill', 'whatwg-fetch', path.resolve(app, 'index.js')],
},
本文标题:ie11 fetch兼容
本文链接:https://www.haomeiwen.com/subject/slcnextx.html
网友评论