angularjs中sortable的使用

将每个li并列排序,同时可以实现拖拉排序功能

html:

js:使用的插件:html.sortable.angularjs,html.sortable.js

实现的效果:

 通过js中sortableOptions中的placeholder的修改class中的样式 和html中li的样式对应。如果html中的col-md-2,和js中placeholder中的col-md-2都去掉,则是实现每个option占据一行,同样可以实现拖拉排序。

具体的demo可以查找:https://github.com/bachvtuan/html5-sortable-angularjs

原文地址:https://www.cnblogs.com/321a/p/5713818.html