穿梭框功能 arr1是穿梭框左侧的全部数据 大致意思是 最后一层的title全部选中就把上一层的title名称放入数组中 如果子children没全部选中则把选中的title放入数组中 arr1 = [ { title:'全部', children:[ { title:'小明0.1', children:[ { title:'小明0.1.1', children:[ { title:'小明0.1.1.1', children: [] } ] }, { title:'小明0.1.2', children:[ { title:'小明0.1.2.1', children: [] } ] }, ] }, { title:'小明0.2', children:[ { title:'小明0.2.1', }, { title:'小明0.2.2', }, { title:'小明0.2.2', } ] } ] } ]