1.安装react-app-polyfill
2.在src/index.js中引入import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable';
3.在pa.在package.json中搜索browserslist,并添加“ie 11”
4.重启项目
1.安装react-app-polyfill
2.在src/index.js中引入import 'react-app-polyfill/ie11'; import 'react-app-polyfill/stable';
3.在pa.在package.json中搜索browserslist,并添加“ie 11”
4.重启项目