Feature Class
硬件环境关键特性检测,这类功能通常在判断硬件环境时使用,如:
require(['feature'], function(Feature){
if(Feature.isIELessThan(9)){
//do something
}
})
Item Index
Methods
- getTransformPrefix static
- getTransitionPrefix static
- isClassListSupported static
- isDeviceMotionSupported static
- isHashChangeSupported static
- isMsPointerSupported static
- isQuerySelectorSupported static
- isTouchEventSupported static
- isTransformSupported static
- isTransitionSupported static
Methods
isDeviceMotionSupported
()
Boolean
static
判断当前宿主环境是否支持手势事件
Features.isDeviceMotionSupported();
Returns:
Boolean:
当前宿主环境是否支持手势事件
isHashChangeSupported
()
Boolean
static
判断当前环境是否支持hashChange事件
Returns:
Boolean:
当前环境是否支持hashChange事件
isMsPointerSupported
()
Boolean
static
判断当前宿主环境是否支持ie8的Pointer事件
Returns:
Boolean:
当前宿主环境是否支持ie8的Pointer事件