JavaScript 时间

1.setTimeout

语法:setTimeout(“function()”,interval);

2.clearTimeout

语法:clearTimeout(variable)

示例

function moveMessage(){};
var movement = setTimeout("moveMessage()",1000)
clearTimeout(movement)

 

posted @ 2017-07-28 20:58  绮梦璇玑  阅读(110)  评论(0编辑  收藏  举报