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.
当用户在元素(网格)中输入任何数字时,我想以气泡方式对输入的数字位置上的元素(网格)进行排序。
示例:如果用户在当前位于第 5 位的元素上输入数字 2,则元素从第 5 位移动到第 4 位,然后从第 4 位到第 3 位,然后从第 3 位到第 2 位,并带有动画(例如自动拖动到所需位置)。