Js picture drag and drop problem

tuodong(e) {
    // e.preventDefault();
    $(".draggable-element").arrangeable();
},

using jq"s drag plug-in, local drag and drop changes the location of div, but the url address of the image is still in the same location. Drag and drop is not successful, but the drag effect changes the location. What"s wrong with me? Whether to get the picture through id or not is the reason for writing to death

Dec.16,2021

I looked at the code of this plug-in. There are only dom operations, but no operations on the data. It should be up to you to change the order of the data


using jq's drag-and-drop plug-in. The drag-and-drop effect is achieved. The location of the picture can be changed locally, but as soon as the url of the picture is passed back to the background, it is still the original address

.
Menu