<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>chenhao </title>
</head>
<body>
<ul id="list">
<li>
苹果
</li>
<li>
香蕉
</li>
</ul>
<ul id="op">
</ul>
<button id="btn">点我</button>
<script>
var btn=document.querySelector('button');
btn.onclick=function()
{
var item=document.getElementById('list').firstChild;
var clone=item.cloneNode(true);
document.getElementById('op').appendChild(clone);
}
</script>
</body>
</html>
不可以实现
```javascript
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<ul id="myList"><li>苹果</li>
<li>橙子</li>
<li>橘子</li>
</ul>
<ul id="op"></ul>
<button onclick="myFunction()">点我</button>
<script>
function myFunction() {
var item = document.getElementById('myList').firstChild;
var cloneItem = item.cloneNode(true);
document.getElementById('op').appendChild(cloneItem);
}
</script>
</body>
</html>
可以实现
```