动态添加js的代码
<script type="text/javascript"> var oHead = document.getElementsByTagName ( 'HEAD'). item (0); var oScript = document.createElement ( "script"); oScript.type = "text / javascript"; oScript.src = "test.js"; oHead.appendChild (oScript); </ script>