日期:2014-05-16 浏览次数:20402 次
<html> <head> <script> function Test(){ alert('dd'); var aa = document.getElementById('divID'); aa.innerHTML = " <ul> <li>fdasfafas </li> <ul>"; aa.innerHTML += " <ul> <li>erwerwer </li> <ul>"; aa.innerHTML += " <ul> <li>rwerwerwerw </li> <ul>"; } </script> </head> <body onLoad="Test()"> <div id="divID"> </div> </body> </html>