[英]How to implement drag drop of html elements in VueJs
If I would like to implement drag drop similar to JQuery with vuejs how would I do that ? 如果我想用vuejs实现类似于JQuery的拖放,我该怎么做? How to move the elements in the DOM ? 如何移动DOM中的元素?
I don't want to use a plugin I want to understand how to do it. 我不想使用我想了解如何做的插件。
Thanks. 谢谢。
When you start to drag a node save a reference of that node. 当您开始拖动节点时,保存该节点的引用。 When you drop that node use that reference. 当您删除该节点时,请使用该引用。
Make container draggable. 使容器可拖动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.