H5、C3、ES6新增特性

68 阅读1分钟

H5:

标签相关

1.语义化标签 2.vedio/audio 3.canvas 4.表单控件 5.拖拽释放API

其他功能

1.history(新增pushstate,replacestate)

2.地理位置API(navigator.geolocation)

3.websocket

4.localstorage/sessionstorage

C3:

选择器:nth-child()

布局:

1.display:flex 2. 多列布局column-count

响应式:媒体查询

变换:transform

过渡:trasition

动画:@keyframes --- animation

颜色:rgba

阴影:box-shadow,text-shadow,box-reflect

背景:background-size,background:linear-gradient

尺寸:border-radius

文字:

文字溢出text-overflow:ellipsis

文字装饰:ext-stroke-color

个性化字体font-face

ES6:

let、const

symbol,Bigint

箭头函数

立即执行函数

this

call,apply,bind

解构赋值

set

数组方法:includes,map,filter,find,findindex,Array.from

for...of

Promise

剩余参数

字符串:

startswith

endswidth

repeat()

模板字符串