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.
我正在使用sortable_element拖放对一些列表进行排序,但我还希望有一些顶部/底部按钮来移动元素。是否有任何 javascript 函数可以像我将某些元素拖到列表的顶部/底部一样?
sortable_element
不,但是您可以使用 InsertBefore/InsertAfter 或其他 DOM 函数轻松模拟它。