<body>
<ol>
<li class="clonesonclick">
<button id="li"><button id="ol">
</li>
</ol>
</body>
Button 克隆父元素,即liand appendChild()to<ol>和另一个克隆<ol>and appendChild()to <body>。
我正在使用innerHTML克隆方法,<ol>但我希望只有一个<li>元素出现在 body 的下一个子元素中并且它不起作用 应该用什么方法来获得结果?-->