vue.js does not support ie8 and below because [Vue.js] uses ECMAScript 5 features that IE8 cannot emulate. [Vue.js] supports all browsers that are compatible with ECMAScript 5.
The operating environment of this tutorial: Windows 7 system, Vue version 2.9.6. This method is suitable for all brands of computers.
[Related article recommendations: vue.js]
Vue.js does not support IE8 and below versions, 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 necessary for Vue to implement responsiveness , 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;
In From the Vue official website, 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!