把要输出的html全部写在某个id中,然后复制过去,你想放多少都行
<script type="text/javascript">window.onload=function(){
var _acon=document.getElementById("aaa").innerHTML
var _bbb=document.getElementById("bbb")
_bbb.innerHTML=_acon
}
</script>
<div id="aaa">
<div class="test">
<ul>
<li>aaaaaaa</li>
<li>bbbbbbb</li>
<li>ccccccc</li>
</ul>
</div>
</div>
<div id="bbb"></div>
window.onload = function(){var str = 'abcdefg',i=0,arr=str.split('')
setInterval(function(){
if(i>str.length-1){
i=0
document.getElementById('test').innerHTML=''
}
document.getElementById('test').innerHTML=document.getElementById('test').innerHTML+arr[i]
i++
},200)
}
<b id="test"></b>