> js拖拽排序插件Sortable.js下载地址及使用demo
相信很多时候我们都有拖动排序的需求,这样的操作对用户实在是太友好了~那么怎么去实现呢?
下面让我们来借助插件来实现这个功能.
[![](https://micuu.com/data/upload/20200812/5f338a610fad5.png)](https://micuu.com/data/upload/20200812/5f338a610fad5.png)
```
new Sortable(example1, {
animation: 150,
ghostClass: 'blue-background-class'
});
```
```
new Sortable(example2Left, {
group: 'shared', // set both lists to same group
animation: 150
});
new Sortable(example2Right, {
group: 'shared',
animation: 150
});
```
[![](https://micuu.com/data/upload/20200812/5f338bba1aaa9.png)](https://micuu.com/data/upload/20200812/5f338bba1aaa9.png)
在线demo地址:http://www.sortablejs.com/index.html
下载地址:http://micuer.com/data/soft/Sortable.min.js