I am trying to make ajax request to backend using axios and fetch. However, seems like neither of them does not support IE7. Does anyone know if there is a quick way or package that I can use in order to avoid to rewrite all my code to using jQuery instead?
You need a ES6 Promise polyfill, as detailed in the readme for axios: https://github.com/axios/axios#promises
They suggest using es6-promise , and you can polyfill it globally by adding require('es6-promise/auto')
to your initialization code.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.