浏览模式: 普通 | 列表
11月, 2009 | 1
<html>
<head>
<script>
function Test(){
              var str="";
              str+="Hello,";
              str+="This is a Test!<br />";
              str+="I Love you;<br />";
              str+="I Love you,too!";
              p.innerHTML=str+"<br /><br />"+Math.random();
              setTimeout('Test();',1000);
}
</script>
</head>
<body onload=Test();>
<span id="p"></span>
</doby>
</html>

innerTEXT与innerHTML的区别:
[img]attachments/200911/21...

阅读全文…
1