Home > Web Front-end > JS Tutorial > How to solve the incompatibility of axios in ie

How to solve the incompatibility of axios in ie

php中世界最好的语言
Release: 2018-03-28 14:28:57
Original
2915 people have browsed it

This time I will show you how to solve the incompatibility of axios in ie, and what are the precautions to solve the incompatibility of axios in ie. The following is a practical case, let's take a look.

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

So there will be incompatibility issues 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-polyfill2. Modify the build configuration environment as shown below or directly import

After that, restart the project and it will be done.

The data acquisition is normal~

I believe you have mastered the method after reading the case in this article. For more exciting things, please pay attention to other php Chinese websites. related articles!

Recommended reading:

Why axios http request cannot be used in vue2


Why springMVC cannot receive parameters when sending post request

The above is the detailed content of How to solve the incompatibility of axios in ie. 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