Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

假设有list1-2 三个数组的时候,从list拖拽到list1-3时,clone有一份数据给list1-2的数组中不可有重复出现,也就是说一份数据拖拽三个数组中不可重复

有没有人用过这个插件的呀?

插件文档示例代码: https://sortablejs.github.io/...

image.png

问题截图:(list1已经拥有list的数据的,此时list在托给list2的时候无法在拖拽)
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
237 views
Welcome To Ask or Share your Answers For Others

1 Answer

https://www.lilnong.top/stati...

onmove判断一下是否存在,如果存在就返回 false


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...