A traditional website uses es6 and does not support ie8. How to solve? Call for help!

problem description

es6 is used in the project, but ie browsers are not compatible

the environmental background of the problems and what methods you have tried

whether broweser.js babel-polyfill.js is inserted or not compatible with ie 8, 9, 10

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

May.22,2021

use jquery,


babel-polyfill is just a polyfill , which allows you to use es6 high-level functions in lower versions, but does not enable browsers to support es6 syntax. For example, you need to use babel to convert ES6 code to ES5 code


your environment.
react or vue ?
if used correctly, vue seems to be compatible with IE9 and above.
react seems to be compatible with IE8 .
how is it possible that IE10 is not compatible.


es6 is too general. It depends on which features of es6 are used. If necessary, you can change it to es5

.
Menu