在线预览 https://zhouatie.github.io/plugin/drag/index.html
插件还有很多功能可以扩展,希望以后有时间会慢慢的完善 本插件目前只支持垂直排列拖动
说明:本插件基于jquery
1.传参
-
pElem 父元素的className 如 ".option"
-
cElem 子元素(要拖拽的元素)的className 如 ".option-list"
- style 被点击拖动的元素的样式 如 {'border-color':'#1F8CEB','background':'red'}