且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将一个项目从一个列表移动到另一个列表?

更新时间:2023-01-04 22:09:40

我认为***的方法是动态地从JavaScript对象绘制列表.具体来说,如果您有两个列表A和B,则可能会有一个表示每个列表的字符串数组.每次在列表之间移动项目时,只需在两个数组上执行操作,然后从这些数组重新绘制列表即可.

I think the best approach would be draw your lists from JavaScript objects dynamically. Specifically, if you had two lists A and B, you might have an array of strings representing each list. Each time you move an item between lists you just carry out the operation on the two arrays then redraw your lists from those arrays.

我希望这会有所帮助!