【发布时间】:2012-03-02 02:03:12
【问题描述】:
如何根据可拖动方向(初始化后)设置轴?
如果是左右拖动,则为 x,如果上下拖动,则为 y。
$("#belt").draggable({
handle: "li",
axis: "y",
start: function() {
//I want to be dragged in the axis i belong which should be x....
},
});
【问题讨论】:
标签: javascript jquery jquery-ui