2017-04-05 18:12:57
谭谭
|
如上:
$ ( '#myBoards' ). boards ({ drop : function ( e ){ $ . zui . messager . show ( e . element . text () + " 拖放到 " + e . target . closest ( '.board' ). find ( '.panel-heading' ). text ()); } });如何在drop中实现遍历各panel种的拖块及各拖块的顺序,我的程序中要对重新排序后的拖块进行排序,困扰好多天了,望楼主指点,非常感谢。 |
谭谭
|
盼楼主指点迷津。
|
谭谭 最后编辑, 2017-04-05 19:36:18
sunhao
|
不好意思,现在才看到你的问题。 你可以随时通过 $('. board-list').children('.board-item') 即可获取条目集合,集合中的顺序即为当前的顺序。 |
1/1