zoukankan      html  css  js  c++  java
  • easyui-combotree个人实例

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    %>
    <!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>Insert title here</title>
    <link rel="stylesheet" type="text/css"
    href="<%=path%>/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
    href="<%=path%>/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=path%>/easyui/demo.css">
    <script type="text/javascript"
    src="<%=path%>/easyui/jquery-1.7.2.min.js"></script>
    <script type="text/javascript"
    src="<%=path%>/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript">
    $(function(){
    $("#t1").combotree({
    url:'/egoTest/tree/loadTree.do',
    300,
    checkbox:true,
    multiple:true

    });

    $("#btn1").click(function(){
    console.info($("#t1").combotree('getValue'));
    });

    $("#btn2").click(function(){
    var tree = $("#t1").combotree('tree');
    var root = tree.tree('getRoot');
    console.info(root);
    });
    });
    </script>
    <title>Insert title here</title>
    </head>
    <body>
    <input id="t1"/>
    <a id="btn1" class="easyui-linkbutton">获取tree选中的值</a>
    <a id="btn2" class="easyui-linkbutton">获取tree对象</a>
    </body>
    </html>

  • 相关阅读:
    每天一个topic----route 设置
    每周一个topic IGMP -- 2013.08.13
    HTTP API 加签名规则
    gitbook 编辑手册
    phpMyAdmin 配置文档
    扒房源线索消息推送设计
    jetty 必知必会
    回溯法解决八皇后问题
    求m行n列个方格的正方形总数
    IOC和AOP的简单实现
  • 原文地址:https://www.cnblogs.com/cxxjohnson/p/4888865.html
Copyright © 2011-2022 走看看