Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用可排序时,轴规则变得无效(jsfiddle示例)
我希望该项目仅水平移动。有人可以帮忙吗?
添加axis: x以限制拖动轴:
axis: x
$("#sortable").sortable({ axis: "x", revert: true });
演示