如上:
$ ( '#myBoards' ). boards ({ drop : function ( e ){ $ . zui . messager . show ( e . element . text () + " 拖放到 " + e . target . closest ( '.board' ). find ( '.panel-heading' ). text ()); } });如何在drop中实现遍历各panel种的拖块及各拖块的顺序,我的程序中要对重新排序后的拖块进行排序,困扰好多天了,望楼主指点,非常感谢。
不好意思,现在才看到你的问题。
你可以随时通过 $('. board-list').children('.board-item') 即可获取条目集合,集合中的顺序即为当前的顺序。
就是这个 innerText的内容的顺序