easyui动态tree

前台页面

1.引入所需js文件
2.body里引入layout布局
3.body引入tabls选项卡
4.增加选项卡 需判断 判断选项卡的路径是否为空
为空不选
5.ajax
onClick:在用户点击一个节点的时候触发
成功回调函数:根据key获取value

<%--
  Created by IntelliJ IDEA.
  User: LI WAN
  Date: 2019/1/16
  Time: 20:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>

    <!-- 引入easyui  css样式  只需引入easyui.css   其中就包含了其他的内容-->
    <link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquery-easyui-1.6.11/themes/default/easyui.css">
    <!-- 引入小图标 -->
    <link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquery-easyui-1.6.11/themes/icon.css">
    <!-- 引入jQuery -->
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.11.3.js"></script>
    <!-- 引入easyui -->
    <script  src="<%=request.getContextPath()%>/js/jquery-easyui/jquery.easyui.min.js" ></script>
    <!-- 样式转化为中文 -->
    <script  src="<%=request.getContextPath()%>/js/jquery-easyui-1.6.11/locale/easyui-lang-zh_CN.js"></script>
    <base href="<%=basePath%>">

    <title>标题</title>
</head>

<body class="easyui-layout">
<div data-options="regio
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值