Home  >  Article  >  Web Front-end  >  Does vue.js support ie8?

Does vue.js support ie8?

coldplay.xixi
coldplay.xixiOriginal
2020-11-12 15:19:252381browse

vue.js does not support ie8 because [Vue.js] uses ECMAScript 5 features that IE8 cannot simulate. [Vue.js] supports all browsers that are compatible with ECMAScript 5.

Does vue.js support ie8?

【Related article recommendations: vue.js

Vue.js is not supported IE8 and below, because Vue.js uses ECMAScript 5 features that IE8 cannot emulate. Vue.js supports all ECMAScript 5-compatible browsers.

Let’s first look at why Vue is not compatible with IE8

The root cause: ie8 and below versions do not support the Object.defineProperty method, but this is a responsive implementation of vue It is necessary, so judging from the source code of Vue, it cannot support IE8 at all;

Furthermore, Vue also needs to support Promise support, and IE8 also does not support Promsie;

Look at the Vue official website and see why IE8 is not supported

Vue.js will use Object.defineProperty to convert all these properties into getters/setters for all data that implements two-way binding. Object.defineProperty is a feature in ES5 that cannot be shimmed, which is why Vue does not support IE8 and lower browsers.

Note here: Object.defineProperty is a method that cannot be implemented through the backing board. It is related to the browser itself, so Vue fundamentally cannot support IE8;

Vue IE8 and below are not supported because Vue uses ECMAScript 5 features that IE8 cannot emulate. But it supports all browsers compatible with ECMAScript 5

Related free learning recommendations:JavaScript(Video)

The above is the detailed content of Does vue.js support ie8?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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

Related articles

See more