在前台直接用JavaScript 把选中的树节点 添加到ListBox中,这样比较合理!
我的JS方法:
function getCkecked()
{//把 叶子 增加到ListBox中
var alluser =document.getElementById("ListBox1");
alluser.options.length=0;
var inputs = document.getElementsByTagName("input");
for(var j=0;j<inputs.length;j++)
{
if((inputs[j].type=="checkbox") && (inputs[j].checked==true))
{
var t = inputs[j].title;
var v="A";
alluser.options[alluser.options.length] = new Option(t,v,true,true);