In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
Most people do not understand the knowledge of this article "ie8 supports es6?", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "ie8 supports es6" article.
Ie8 does not support es6. In ie browsers, ie10 and below versions do not support es6 at all and cannot parse the syntax of es6, while ie11 can support some es6 features; you can check whether the ie browser supports es6 by judging whether it supports the arrow function. When the arrow function is not supported, it means that the browser does not support ES6.
The operating environment of this tutorial: windows7 system, ECMAScript version 6, Dell G3 computer.
Ie8 does not support es6.
In ie browsers, ie10 and below do not support es6 at all and cannot parse the syntax of es6, while ie11 can support some es6 features.
Browser versions that support ES6 (summary table):
Versions not supported by browsers supported versions supported by IE6-1011
Edge
12-1415-18, 79-87Firefox2-56-5354-86Chrome4-2021-5051-90Safari3.1-77.1-9.110-13.1,14, TPOpera10-12.115-3738-72iOS Safari3.2-6.17-9.310-13.7, 14.2Opera Miniall
Android Browser2.1-4.34.4-4.4.481Opera Mobile12-12.1
59Chrome for Android
87Firefox for Android
83UC Browser for Android
12.12Samsung Internet
45-13.0QQ Browser
10.4Baidu Browser
7.12
KaiOS Browser
2.5
How to tell whether a browser supports ES6 or not?
The idea of realization is:
By judging whether a browser supports the arrow function, if it does not support the arrow function, it means that the browser does not support ES6
The implementation steps are as follows:
1. Define a string and assign an arrow function to the string
2. Use try catch to determine whether new Function can initialize the successful arrow function.
If you do not enter catch, it means that the browser supports ES6;, otherwise the browser does not support ES6, as shown in the following example:
Example:
Check whether the browser supports the sharing of ES6 samples
Test environment: IE,Chrome
} the above is about the content of this article, "does ie8 support es6?", I believe you all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.