本帖最后由 apollokk 于 2012-05-11 10:12:11 编辑

解决方案 »

  1.   


    使用的都是官方自带的文件,整个目录都是全的,没有改动过的
    直接在资源管理器双击打开就可以的源码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>ComboTree - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../themes/icon.css">
    <link rel="stylesheet" type="text/css" href="demo.css">
    <script type="text/javascript" src="../jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="../jquery.easyui.min.js"></script>
    <script>
    function reload(){
    $('#cc').combotree('reload');
    }
    function setValue(){
    $('#cc').combotree('setValue', 2);
    }
    function getValue(){
    var val = $('#cc').combotree('getValue');
    alert(val);
    }
    function disable(){
    $('#cc').combotree('disable');
    }
    function enable(){
    $('#cc').combotree('enable');
    }
    </script>
    </head>
    <body>
    <h2>ComboTree</h2>
    <div class="demo-info">
    <div class="demo-tip icon-tip"></div>
    <div>Click the right arrow button to show the tree.</div>
    </div>

    <div style="margin:10px 0;">
    <a href="#" class="easyui-linkbutton" onclick="reload()">Reload</a>
    <a href="#" class="easyui-linkbutton" onclick="setValue()">SetValue</a>
    <a href="#" class="easyui-linkbutton" onclick="getValue()">GetValue</a>
    <a href="#" class="easyui-linkbutton" onclick="disable()">Disable</a>
    <a href="#" class="easyui-linkbutton" onclick="enable()">Enable</a>
    </div>
    <p>Single Select</p>
    <input id="cc" class="easyui-combotree" url="tree_data.json" value="2" required="true" style="width:200px;">
    <p>Multiple Select</p>
    <select class="easyui-combotree" name="language" url="tree_data.json" multiple="true" cascadeCheck="false" style="width:200px;"></select>
    </body>
    </html>文件夹结构: