这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
AnimationPlaybackEvent()
constructor of the
Web 动画 API
returns a new
对象实例。
AnimationPlaybackEvent
var animationPlaybackEvent = new AnimationPlaybackEvent(type, eventInitDict);
type
DOMString
表示事件的名称。
eventInitDict
可选
EventInit
dictionary object containing the following fields:
bubbles
可选
false
, of type
布尔
, indicating if the event bubbles or not.
cancelable
可选
false
, of type
布尔
, indicating if the event can be canceled or not.
detail
可选
null
, of type any — an event-dependent value associated with the event.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Web 动画
The definition of 'AnimationPlaybackEvent()' in that specification. |
工作草案 | 编者草案。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
AnimationPlaybackEvent()
构造函数
|
Chrome No | Edge No | Firefox 42 | IE No | Opera No | Safari No | WebView Android No | Chrome Android No | Firefox Android 42 | Opera Android No | Safari iOS No | Samsung Internet Android No |
完整支持
不支持
实验。期望将来行为有所改变。
AnimationPlaybackEvent
AnimationPlaybackEvent()