ES6 新特性
- let 和 const 声明变量
- 变量的解构赋值
- 模板字符串 ``
- 简化对象写法
- 箭头函数 ()=>{}
- 函数默认值
- rest参数 function(...args){}
- 扩展运算符 ...
- String新增方法 includes(), startsWith(), endsWith(), repeat()
- Number新增方法 Number.isFinite(), Number.isNaN(), Number.parseInt(), Number.parseFloat(),Number.isInteger() Number.isSafeInteger()
- Math新增方法 Math.trunc(), Math.sign() Math.sqrt() Math.cbrt() Math.hypot()
- 对象新增方法 Object.is(),Object.assign(),Object.setPrototypeOf(),Object.getPrototypeOf()
- 数组新增方法 Array.from() Array.of() find() findIndex() fill() copyWidthin()
- Symbol 独一无二的值
- Set 和 Map 数据结构
- Proxy
- Promise 对象
- Iterator 和 for...of 循环
- Generator
- class
- module: import和export
ES7 新特性
- 数组includes
- 指数操作符 ** 实现幂运算
- Math.pow()
ES8 新特性
- async和await
- 对象新增方法 Object.values(),Object.entries(),Object.getOwnPropertyDescriptors()
- 字符串新增方法 padStart(), padEnd()
- 尾逗号 Trailing commas
CSS3新特性
- 新增选择器
属性选择器
- E[att^=value]
- E[att$=value]
- E[att*=value]
伪类选择器
- :root
- :not
- :only-child
- :first-child和:last-child
- :nth-child(n)和:nth-last-child(n)
- :nth-of-type(n) 和:nth-last-of-type(n)
- :target
- :empty
- 边框 border-radius border-shadow border-image
- 文字字体: text-overflow word-wrap @font-face text-shadow font-stretch
- object-fit object-position
- 多列布局 columns
- 媒体查询 @media
- 弹性布局 flex
- 背景 background-image background-origin background-clip
- 渐变 linear-gradient() radial-gradient()
- 过渡transition
- 变换transform: rotate旋转 translate平移 scale缩放
- 动画animation
HTML5新特性
- 画布 canvas、svg
- 拖拽释放(Drag and drop) API
- audio、video音频和视频
- 本地存储localStorage、会话存储sessionStorage
- 语义化标签,比如header头部、main主体、article章节、aside侧边栏、figure图形广告、footer底部、nav导航、section段落
- 表单控件,color、date、time、datatime、week、month、email、url、search、number、tel、range
- 新的技术 webworker, websocket, 地理(Geolocation) API