What is the actual function of appendTo in draggable in jquery ui

draggable sets appendTo, but does not simulate the effect all the time. After reading the document, it says that it is to find the parent container for the element while dragging. The simulation can not produce the effect, do not know what the actual function of this attribute is, ask for a detailed answer. Thank you. Don"t copy the manual. Kneel again and thank you

Mar.18,2021

when dragging, there is a device that runs with the mouse. (helper), can be the dragged dom itself (appendTo is not valid at this time), or it can be another special effect element created to represent the dragged dom.
dragging within the same dom really doesn't make sense for appendTo. However, if a multi-tier dom structure is involved, drag a dom inside to the outside. If appendTo, is not configured, the parentNode, of the dragged dom will be taken by default. If you change the pnode to have the overflow:auto attribute, a scroll bar will appear if you want to drag outside (specific how not try)
at this time, you can set appendTo to the outermost layer of the drag area

.
Menu