你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AbortSignalLike interface
允许在触发“中止”事件时中止请求。 与浏览器内置 AbortSignal 和通用 polyfill 兼容。
属性
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