拖拽排序Sortable.js

官方地址:http://www.sortablejs.com/index.html

用法:

new Sortable(dom, {
    animation: 150,
    ghostClass: 'class',
    onChoose: (event) => {
    },
    onUnchoose: (event) => {
    },
    onStart: (event) => {
    },
    onEnd: (event) => {
    }
  })

 

posted @ 2021-06-30 11:14  JS-Feng  阅读(104)  评论(0编辑  收藏  举报