此文件需要技術審查。看看您能幫什麼忙。
UIEvent()
constructor 是用來建立新的 UIEvent
。
語法
event = new UIEvent(typeArg, UIEventInit);
參數
- typeArg
- 一個
DOMString
,用來表示事件名稱 - UIEventInit選擇性
- 一個
UIEventInit
dictionary ,能接受以下參數:參數 可選 默認值 類型 說明 "detail"
● 0
long
定義事件意義的值。關於事件的意義於 UIEvent.detail
已有較詳盡的列表。"view"
● null
WindowProxy
與事件相關的 Window
。UIEventInit
dictionary 亦接受EventInit
dictionary 所接受的參數。
規格
Specification | Status | Comment |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification The definition of 'UIEvent()' in that specification. |
Working Draft | 原始定義。 |
瀏覽器支援度
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 11 (11) | ? | (Yes) | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | ? | 11.0 (11) | ? | ? | ? |
延伸閱讀
UIEvent
,此 constructer 所建立的 object 的 interface。