如何交换td's,并在交换后获得文本数组

How to swap td's of the table that are created dynamically and get the array of the text after swapping

本文关键字:交换 文本 数组 何交换 td      更新时间:2023-09-26

我正在使用Zepto dragswap插件http://james2doyle.github.io/zepto-dragswap/在最后一个例子中,div被交换,数组被填充,它在桌面上工作正常,但在移动设备中不支持。

我读到pep.js受到所有设备和浏览器的支持。

所以我可以在pep.js中有类似的功能吗?如果能提供任何帮助,我们将不胜感激,或者如果能提供小提琴,那将是非常棒的。

我认为您可以在Javascript中使用函数insertBefore()或insertAfter()。