js 如何清除setinterval

var id=window.setInterval(function(){ },1000);
window.clearInterval(id);

原文地址:https://www.cnblogs.com/hellowzd/p/5970717.html