我想用 jquery 或 javascript 模拟拖放。
我必须在数据表中模拟拖放操作。
<table class="dataTable table table-hover null table-cells dragDropTable table-draggable" id='tableListViewFields' data-testid='tableListViewFields'>
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr class="drag-cue" data-name="test" data-index="1">
<td class="no-border-right">
test
</td>
</tr>
</tbody>
</table>
目标表看起来相同。
那么如何模拟从一个行元素到另一个行元素的拖放?
最佳答案
我找到了另一个解决方案: 我现在用https://github.com/j-ulrich/jquery-simulate-ext/blob/master/doc/drag-n-drop.md它有一个非常简单的拖放实现
关于javascript - 使用jquery模拟拖放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49775777/