How do you drag and drop an element into another element box in HTML5, but only copy it into the element box? That is, this element still exists in the original place after dragging.

How do I drag and drop an element into another element box in

HTML5, but only copy it into the element box? That is to say, this element still exists in the original place after dragging?

May.07,2021
Copy this node when

onmousedown, cloneNode, then add an onmousemove event to the node, move to the element box, remove the onmousemove, through onmouseup, and proceed to the next operation

Menu