zoukankan      html  css  js  c++  java
  • easyui datagrid数据网格

    EasyUI是一组基于jQuery的UI插件集合,它的目标就是帮助web开发者更轻松的打造出功能丰富并且美观的UI界面。它的许多控件让我们不必写很复杂的javascript,从而极大地提高了开发效率。

    <link rel="stylesheet" type="text/css" href="/js/easyui.css" />

    <script type="text/javascript" src="/js/jquery.min.js"></script>

    <script type="text/javascript" src="/js/jquery.easyui.min.js"></script>

    记得先导入以上3个

    先上效果

    <div class="easyui-panel" title="Nested Panel" data-options="'100%',minHeight:500,noheader:true,border:false" style="padding:10px;">
        <div class="easyui-layout" data-options="fit:true">
           <div data-options="region:'west',split:false" style="250px;padding:5px">
               <%@include file="content-category.jsp" %>
            </div>
            <div data-options="region:'center'" style="padding:5px">
                <table class="easyui-datagrid" id="contentList" data-options="toolbar:contentListToolbar,singleSelect:false,collapsible:true,pagination:true,method:'get',pageSize:20,url:'*******',queryParams:{categoryId:0}">
                <thead>
                    <tr>
                        <th data-options="field:'id',30">ID</th>
                        <th data-options="field:'title',240,align:'center'">内容标题</th>
                        <th data-options="field:'subTitle',100,align:'center'">内容子标题</th>
                        <th data-options="field:'titleDesc',120,align:'center'">内容描述</th>
                        <th data-options="field:'url',60,align:'center',formatter:E3.formatUrl">内容连接</th>
                        <th data-options="field:'pic',50,align:'center',formatter:E3.formatUrl">图片</th>
                        <th data-options="field:'created',130,align:'center',formatter:E3.formatDateTime">创建日期</th>
                        <th data-options="field:'updated',130,align:'center',formatter:E3.formatDateTime">更新日期</th>
                    </tr>
                </thead>
            </table>
            </div>
        </div>
    </div>

  • 相关阅读:
    Restful levels &HATEOAS基本介绍~
    跨源资源共享(CORS)概念、实现(用Spring)、起源介绍
    Ubuntu下math库函数编译时未定义问题的解决
    常用软件清单~
    JetBrains PyCharm 专业版激活
    hello1.java内容简单介绍
    hello1 web项目中web.xml作用分析
    hello2 source analisis(notes)
    Servlet filter
    分析helo1项目中的 Web.xml
  • 原文地址:https://www.cnblogs.com/wangxiaomo/p/11589981.html
Copyright © 2011-2022 走看看