Feature

功能硬件环境关键特性检测
模块名feature
模块实质对象

函数

.getTransitionPrefix():得到Transition属性的前缀

.getTransformPrefix():得到Transform属性的前缀

.isClassListSupported():判断当前环境是否支持ClassList

.isDeviceMotionSupported():判断当前宿主环境是否支持手势事件

.isHashChangeSupported():判断当前环境是否支持hashChange事件

.isMsPointerSupported():判断当前宿主环境是否支持ie8的Pointer事件

.isQuerySelectorSupported():判断当前环境是否支持QuerySelector方法

.isTouchEventSupported():判断当前宿主环境是否支持触屏事件

.isTransformSupported():判断当前环境是否支持Transform动画