我用setInterval做定时执行怎么IE下不能用
我用setInterval定时执行test函数,为什么在ie下面不执行呢,,firefox下面可以执行,,什么地方有问题,,在IE下面需要怎么做?谢谢
setInterval( "test() ",1000);
------解决方案--------------------ie下是没问题的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<html>
<head>
<title> New Document </title>
<meta name= "Generator " content= "EditPlus ">
<meta name= "Author " content= " ">
<meta name= "Keywords " content= " ">
<meta name= "Description " content= " ">
</head>
<body>
<script language= "JavaScript ">
<!--
test=function()
{
alert( 'dddd ');
}
setInterval( "test() ",1000);
//-->
</script>
</body>
</html>
------解决方案--------------------那是你的IE问题了,或者什么插件的原因?