I now want to do the picture drag sorting, save the picture now in the order. The question is, now I drag the picture, point to save or in the previous order.
//获取图片数组 var goods_img = new Array; $("._img").each(function(i){ goods_img[i] = $(this).attr('src'); });
I change the position of the picture, but the order of the images obtained is unchanged. There are ways to drag a picture, and the order in which it gets to the picture changes.
Reply content:
I now want to do the picture drag sorting, save the picture now in the order. The question is, now I drag the picture, point to save or in the previous order.
//获取图片数组 var goods_img = new Array; $("._img").each(function(i){ goods_img[i] = $(this).attr('src'); });
I change the position of the picture, but the order of the images obtained is unchanged. There are ways to drag a picture, and the order in which it gets to the picture changes.
Inventory Drag finish Update Database Refresh page