Skip to content
  • ES5 2009:浏览器兼容性最好的版本。
  • ES6 2015:箭头函数() => {}class关键字、模板字符串、析构、let/const...rest/spread运算符(用于参数列表、数组初始化)、迭代器、协程generatorunicodemodulemap/setproxysymbolpromisetail calls、等等
  • ES7 2016:Array includes方法、幂运算符a ** b
  • ES8 2017:异步函数async,memory 多线程共享数据
  • ES9 2018:Rest/Spread 运算符(用于对象初始化)、异步迭代、Object.values()/Object.entries()、String padding 补足字符、正则捕捉、promise finally
  • ES10 2019:Array flat/flatMap、Object fromEntries、String trim 去除前后空白字符、try catch 允许不 catch 参数、Function toStringSymbol.description、Well Formed JSON.Stringify()、Array 稳定排序、JSON 拓展