常用JS特性浏览器支持版本查询

此文仅供自己快速查询常用的特性。红色表示不支持。

Feature iOS Safari Android Chrome Firefox
ES6 Class 10.3 49 49 46
箭头函数 10 45 45 22
let 10(for循环scope错误),11 49 41(strict模式),49 44
const 10(scope错误), 11 4.4.4(非严格模式) 41(非严格没块域),49 36
for...of 7 38 38 13
...展开 8 46 46 16
解构赋值 8 49 49 41
默认参数 10 49 49 15
grid布局 10.3 57 57 52
flex布局 9 4.4 29 20
模板字符串 41 41 34
String.prototype.trim 37 3.5
String.prototype.includes 9 41 41 40
Array.prototype.includes 47 47 43
Array.prototype.filter 37  1.5
Array.prototype.reduce 3.2 37 3 3
async/await 10.3 55 55  52
Map/Set 8 38 38  13 
new Promise() 10 4.4.3 32 37
fetch 10.3  42  42 39
module/import/export 10.3  61  61  60 
class 10.3  49 49  45 
extends  9 49 49 45
         
posted @ 2024-06-22 21:52  Easy C#  阅读(7)  评论(0编辑  收藏  举报