UIEvent.view
read-only property returns the
WindowProxy
object from which the event was generated. In browsers, this is the
Window
object the event happened in.
var view = event.view;
view
is a reference to an
AbstractView
对象。
| 规范 | 状态 | 注释 |
|---|---|---|
|
DOM (文档对象模型) 3 级事件规范
在该规范中的 UIEvent 定义。 |
过时 |
从
DOM (文档对象模型) 2 级事件规范
, changed the type of
view
from
AbstractView
to
WindowProxy
.
|
|
DOM (文档对象模型) 2 级事件规范
在该规范中的 UIEvent 定义。 |
过时 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
view
|
Chrome Yes | Edge 12 | Firefox Yes | IE 9 | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android Yes | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
完整支持
UIEvent