function testStr(){ var time=new Date().toLocaleString(); var show=document.getElementById("pId"); if(show==null){ show.innerHTML="enter null"; }else{ show.innerHTML=time; } setTimeout("testStr()",1000); } window.setTimeout("testStr()",1000);
阅读(1102) | 评论(0) | 转发(0) |