微件:External demands
<script> const elements = document.getElementsByClassName("test");
const appendTo = document.getElementById("element-testing");
for (let i = 0; i < elements.length; i++) {
const element = elements[i]; const created = document.createElement('span'); created.innerText = element.innerText; appendTo.appendChild(created);
}
</script>