查了许多相关资料,还是没查到。希望大家指点一下。

解决方案 »

  1.   

    只是在前台实现给怎么写代码呢?我想得到nodetext。
      

  2.   

     <script type="text/javascript">
            function getValue(node) {
                var ChildNode = new Array();
                ChildNode = node.getChildren();
                if (parseInt(ChildNode.length) != 0) {
                    for (var i = 0; i < ChildNode.length; i++) {
                        var cNode = ChildNode[i];                    if (cNode.getAttribute("checked") == true) {
                            document.getElementById("txtData").value += cNode.getAttribute("id").substring(1, cNode.getAttribute("id").length) + ",";
                        }                    if (parseInt(cNode.getChildren().length) != 0)
                            getValue(cNode);
                    }
                }
            }
        </script>
      

  3.   

    如果我在两个页面间传递treeview的值怎么传呢?