Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

window.clearImmediate

概述

此方法用来清除 window.setImmediate.

注意: 注意: 该方法最近刚刚被微软提出, 可能不会被w3c批准成为标准, 目前只有最新版Internet Explorer实现了该方法.

语法

window.clearImmediate(immediateID)

这里的immediateID是由window.setImmediate返回的.

例子

var immediateID = setImmediate(function () {
  // Run some code
}

document.getElementById("button").addEventListener(function () {
  clearImmediate(immediateID);
}, false);

浏览器兼容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 未实现 未实现 (Yes) 未实现 未实现
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 未实现 未实现 未实现 未实现 未实现

相关链接

window.setImmediate

Specification: Efficient Script Yielding

文档标签和贡献者

 此页面的贡献者: teoli, AshfaqHossain, ziyunfei, movinghorse
 最后编辑者: AshfaqHossain,