Home > Web Front-end > JS Tutorial > body text

Perfectly solve the compatibility problem of Axios under IE. The specific solution steps are as follows

亚连
Release: 2018-06-01 14:12:20
Original
3837 people have browsed it

Below I will share with you an article that perfectly solves the compatibility problem of Axios under IE. It has a good reference value and I hope it will be helpful to everyone.

First of all, although axios supports ie8, its principle is implemented based on promise

So there will be problems of incompatibility with ie, that is, the trident kernel will not work at all,

Report: vuex requires a Promise polyfill in this browser

##Solution:

1. Install babel-polyfill

2. Modify the build configuration environment as shown below or directly import

. When done, restart the project and it will be done. ,

The data acquisition is normal~

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

Example of vue combined with Echarts to achieve click highlighting effect

echarts mouse overlay highlights node and relationship names Detailed explanation

Vue-Highlight setting method of routing navigation menu bar

The above is the detailed content of Perfectly solve the compatibility problem of Axios under IE. The specific solution steps are as follows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!