我用Javascript添加了
1 <p> 2 <script type="text/javascript">// <![CDATA[ 3 window.addEventListener("load",eventWindowLoaded,false); 4 function eventWindowLoaded(){ 5 runTest(); 6 } 7 function runTest(){ 8 var thediv=document.getElementById("alexTestDiv"); 9 thediv.innerHTML="I like javascript"; 10 } 11 // ]]></script> 12 </p> 13 <div id="alexTestDiv">我的测试</div>
原文:http://www.cnblogs.com/alexywt/p/4733131.html