window.clearImmediate
概述
此方法用来清除 window.setImmediate
.
语法
js
clearImmediate(immediateID)
这里的 immediateID 是由window.setImmediate
返回的。
例子
js
var immediateID = setImmediate(function () {
// Run some code
}
document.getElementById("button").addEventListener(function () {
clearImmediate(immediateID);
}, false);
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
clearImmediate |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.