AbortSignalLike interface
允许在触发“中止”事件时中止请求。 与浏览器内置 AbortSignal 和常见 polyfills 兼容。
属性
aborted | |
add |
|
dispatch |
|
onabort | |
remove |
属性详细信息
aborted
aborted: boolean
属性值
boolean
addEventListener
addEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void
属性值
(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void
dispatchEvent
dispatchEvent: (event: Event) => boolean
属性值
(event: Event) => boolean
onabort
onabort: null | (this: AbortSignalLike, ev: Event) => any
属性值
null | (this: AbortSignalLike, ev: Event) => any
removeEventListener
removeEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void
属性值
(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void