<script>
document.onload=function(){
var demo = document.getElementById("demo")
demo.onclick=function(){
var itm=document.getElementById("myList1").firstChild;
var cln=itm.cloneNode(true);
document.getElementById("myList2").appendChild(cln);
}
}
</script>
<body>
<input type="button" id="demo" value="点击一下">
<ul id="myList1">
<li>水果</li>
<li>蔬菜</li>
</ul>
<ul id="myList2" >
<li>食物</li>
</ul>
</body>