海海日记-冯海滨博客

您现在的位置是:首页 > Html > 正文

Html

js重复执行某段代码

happyfhb2015-05-30Html2117


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function allRunFunction() {
	alert("dd");
    setTimeout(allRunFunction,1000);

}
</script>
</head>
<p onclick="allRunFunction()">点我重复执行</p> 
<body>
</body>
</html>


平淡中储蓄成长

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~