InputDeviceCapabilities() 构造函数创建新 InputDeviceCapabilities object provides information about the physical device responsible for generating a touch event.

句法

var inputDeviceCapabilities = new InputDeviceCapabilities([InputDeviceCapabilitiesInit])
					

返回

An instance of the InputDeviceCapabilities 接口。

参数

InputDeviceCapabilitiesInit 可选
A dictionary object containing a set of device capabilities. It contains the following property.
  • fireTouchEvents : A 布尔 that indicates whether the device dispatches touch events.

规范

规范 状态 注释
InputDeviceCapabilities 草案 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
InputDeviceCapabilities() 构造函数 非标 Chrome 47 Edge ≤79 Firefox ? IE ? Opera ? Safari ? WebView Android 47 Chrome Android 47 Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android 5.0

图例

完整支持

完整支持

兼容性未知 ?

兼容性未知

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

元数据

  • 最后修改: