<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<script type ="text/javascript" >
function abc()
{
setTimeout ('alert("ok")',1000); //延时执行1000毫秒(1秒) 1秒后才执行
}
function def()
{
alert("ok");
}
</script>
</head>
<body>
<input />
</body>
</html>
setInterval('sendAJAX()',1000); //每隔一秒钟执行一次sendAJAX()函数