Home > Web Front-end > Vue.js > vue cum yong ie 几

vue cum yong ie 几

青灯夜游
Release: 2021-10-26 13:51:01
Original
9410 people have browsed it

vue is compatible with ie9 and above, but does not support ie8 and below. Reasons: 1. IE8 and below versions do not support the "Object.defineProperty" method, but this method is necessary for Vue to implement responsiveness; 2. Vue requires the support of Promise, and IE8 does not support Promsie.

vue cum yong ie 几

The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.

vue.js is compatible with IE8 and above, but is not compatible with IE8 and below. Vue uses ECMAScript 5 features that IE8 cannot emulate, but it supports all ECMAScript 5-compatible browsers.

Specific instructions:

  • ie8 and below versions do not support the Object.defineProperty method, but this is necessary for vue to implement responsiveness. Therefore, judging from the source code of Vue, it cannot support IE8 at all;

Vue.js will use Object.defineProperty# for all data that implements two-way binding. ## Convert all these properties to getter/setter. 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 underlay and is related to the browser itself, so Vue fundamentally cannot support IE8;

  • And Vue also needs to support Promise, and IE8 also does not support Promsie.

Browser support for Object.defineProperty():

vue cum yong ie 几

It can be seen that the support is IE9 and above. Therefore, Vue does not support IE8 and below versions.

Related recommendations: "

vue.js Tutorial"

The above is the detailed content of vue cum yong 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