0
this.$container.find('[data-uk-sortable]').on('stop.uk.sortable', function(e, el, type){ 
    //type is null here 
} 

this.$container.on('stop.uk.sortable', '[data-uk-sortable]', function(e, el, type){ 
    //type is null here 
} 

文件说,它应该是可用的,我也发现了许多例如网上显示,它应该是可用的,但事实并非如此。拖动的元素上的UIKit可排序不可用的停止(v2.27.1)上的UIKit网站

https://getuikit.com/v2/docs/sortable.html

是否有另一种方式来获得所拖动的元素?

回答

0

我使用的是el.drag["0"],它给我div我在拖动。