你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

AbortSignalLike interface

允许在触发“中止”事件时中止请求。 与浏览器内置 AbortSignal 和常见 polyfills 兼容。

属性详细信息

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: (this: AbortSignalLike, ev: Event) => any | null

属性值

(this: AbortSignalLike, ev: Event) => any | null

removeEventListener

removeEventListener: (type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void

属性值

(type: "abort", listener: (this: AbortSignalLike, ev: Event) => any, options?: any) => void