ui 官网
实例:
http://jqueryui.com/demos/draggable/
文档
http://interface.eyecon.ro/docs/sort
实例:
http://interface.eyecon.ro/demos/?page=demos
参数说明
accept-- 需要被移动对象的classname
activeclass -- 移动时的样式
hoverclass -- 移动经过时的样式
helperclass -- 放置移动对象的目标位置样式
opacity -- 移动时的透明度
ghosting -- 为真时,helpercall对象将有一份操作对象的复制
tolerance 'pointer', 'intersect' or 'fit'
fit -- boolean
fx 释放时的动画速度
onchange -- function(obj) 对象位置改变时触发
floats -- 对象是否float
containment -- (parent)只可以在父容器中移动
axis --
handle -- 拖动指定对象进行移动,忽略的话即为整个对象
cursorAt -- 元素拖动位置与光标位置的偏移量的指定。接受top,bottom,left,right的偏移量。
onHover function
onOut -- function(obj) 对象被移出指定容器时触发
onStart -- function(obj) 对象开始移动时触发
onStop function