1.setTimeout
语法:setTimeout(“function()”,interval);
2.clearTimeout
语法:clearTimeout(variable)
示例
function moveMessage(){}; var movement = setTimeout("moveMessage()",1000) clearTimeout(movement)