UIEvent()
构造函数创建新
UIEvent
.
event = new UIEvent(typeArg [, UIEventInit])
typeArg
DOMString
表示事件的名称。
UIEventInit
可选
UIEventInit
字典,拥有以下字段:
detail
:可选并默认为
0
, of type
long
, that is a event-dependant value associated with the event.
UIEvent.detail
lists the semantic for standard events.
view
:可选并默认为
null
, of type
WindowProxy
, that is the
Window
与事件关联。
sourceCapabilities
:
An instance of the
InputDeviceCapabilities
interface which provides information about the physical device responsible for generating a touch event.
UIEventInit
字典还接受字段来自
EventInit
字典。
| 规范 | 状态 | 注释 |
|---|---|---|
| InputDeviceCapabilities | 草案 |
添加
sourceCapabilities
特性。
|
|
DOM (文档对象模型) 3 级事件规范
在该规范中的 UIEvent() 定义。 |
过时 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
UIEvent()
构造函数
|
Chrome Yes | Edge ≤18 | Firefox 11 | IE ? | Opera Yes | Safari ? | WebView Android Yes | Chrome Android Yes | Firefox Android 14 | Opera Android Yes | Safari iOS ? | Samsung Internet Android Yes |
完整支持
兼容性未知
UIEvent
,构造对象的接口。
UIEvent
UIEvent()