• easyui tree tabs


    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Full Layout - 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.min.js"></script>
        <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
        <script type="text/javascript">
            function addTab(s, u) {
                var t = $('#layout_center_tabs');
                if (t.tabs('exists', s)) {
                    t.tabs('select', s);
                } else {
                    t.tabs('add', {
                        title: s,
                        closable: true,
                        content: createFrame('basic.html')
                    });
                }
            }
            function createFrame(url) {
                var s = '<iframe scrolling="auto" frameborder="0" src="' + url + '" style="100%;height:99%;"></iframe>';
                return s;
            }
            $(function () {
                $('#tm').tree({
                    onClick: function (node) {
                        addTab(node.text, 'aa.htm'); 
                    }
    
                });
                aa;
            });
        </script>
    </head>
    <body class="easyui-layout">
        <div data-options="region:'north',border:false" style="height:60px;background:#B3DFDA;padding:10px">north region</div>
        <div data-options="region:'west',split:true,title:'West'" style="150px;padding:0px;">
            <div class="easyui-accordion" data-options="fit:true,border:false">
                <div title="About" data-options="iconCls:'icon-ok'" style="overflow:hidden;padding:10px;">
                    <h3 style="color:#0099FF;">Accordion for jQuery</h3>
                    <p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
                </div>
                <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
                    <p>The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.</p>
                </div>
                <div title="TreeMenu" data-options="iconCls:'icon-search'" style="padding:10px;">
                    <ul id="tm" class="easyui-tree" data-options="lines:true">
                        <li>
                            <span>Foods</span>
                            <ul>
                                <li>
                                    <span>Fruits</span>
                                    <ul>
                                        <li>apple</li>
                                        <li>orange</li>
                                    </ul>
                                </li>
                                <li>
                                    <span>Vegetables</span>
                                    <ul>
                                        <li>tomato5555555555555</li>
                                        <li>carrot</li>
                                        <li>cabbage</li>
                                        <li>potato</li>
                                        <li>lettuce</li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div data-options="region:'center'" class=" easyui-tabs" fit="true" id="layout_center_tabs">
            <div title="About" style="padding:10px">
                <p style="font-size:14px">jQuery EasyUI framework helps you build your web pages easily.</p>
                <ul>
                    <li>easyui is a collection of user-interface plugin based on jQuery.</li>
                    <li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
                    <li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
                    <li>complete framework for HTML5 web page.</li>
                    <li>easyui save your time and scales while developing your products.</li>
                    <li>easyui is very easy but powerful.</li>
                </ul>
            </div>
            <div title="My Documents" style="padding:10px">
                <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul>
            </div>
            <div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
                This is the help content.
            </div>
        </div>
    </body>
    </html>

    http://blog.csdn.net/aojiancc2/article/details/25395925

  • 相关阅读:
    Chrome Native Messaging 与本地程序之间的通信
    由于扩展配置问题而无法提供您请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加 MIME 映射。
    linux
    maven POM.xml 标签详解 转
    java-线程观察整个生命周期
    java-Web项目开发中Spring整合Junit单元测试
    java-Map集合的四种遍历方式
    Java-8内置的核心函数式接口接口
    正则表达式
    Java-Atomic系列12大类实例讲解和原理分解
  • 原文地址:https://www.cnblogs.com/dotnetmvc/p/7231055.html
Copyright © 2020-2023  润新知