zoukankan      html  css  js  c++  java
  • 后台CRUD管理jqGrid 插件下载、使用、demo演示

    jqGrid:demo?version=5.2.1
    download src: http://www.trirand.com/blog/

    github:https://github.com/tonytomov/jqGrid (引用仓库:需要重新配置文件引用连接)

    在线demo:http://www.guriddo.net/demo/bootstrap/


    <!DOCTYPE html>

    <html lang="en">
    <head>
    <!-- The jQuery library is a prerequisite for all jqSuite products -->
    <script type="text/ecmascript" src="js/jquery-1.11.0.min.js"></script>
    <!-- We support more than 40 localizations -->
    <script type="text/ecmascript" src="src/i18n/grid.locale-cn.js"></script>
    <!-- This is the Javascript file of jqGrid -->
    <script type="text/ecmascript" src="js/jquery.jqGrid.min.js"></script>
    <!-- This is the localization file of the grid controlling messages, labels, etc.
    <!-- A link to a jQuery UI ThemeRoller theme, more than 22 built-in and many more custom -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
    <!-- The link to the CSS that the grid needs -->
    <link rel="stylesheet" type="text/css" media="screen" href="src/css/ui.jqgrid-bootstrap.css" />
    <script>
    $.jgrid.defaults.width = 780;
    </script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <meta charset="utf-8" />
    <title>jqGrid Loading Data - Million Rows from a REST service</title>
    </head>
    <body>
    <div style="margin-left:20px">
    <table id="jqGrid"></table>
    <div id="jqGridPager"></div>
    </div>
    <script type="text/javascript">
    $(document).ready(function () {

    $("#jqGrid").jqGrid({
    url: 'http://trirand.com/blog/phpjqgrid/examples/jsonp/getjsonp.php?callback=?&qwery=longorders',
    mtype: "GET",
    styleUI : 'Bootstrap',
    datatype: "jsonp",
    colModel: [
    { label: 'OrderID', name: 'OrderID', key: true, 75 },
    { label: 'Customer ID', name: 'CustomerID', 150 },
    { label: 'Order Date', name: 'OrderDate', 150 },
    { label: 'Freight', name: 'Freight', 150 },
    { label:'Ship Name', name: 'ShipName', 150 }
    ],
    viewrecords: true,
    height: 250,
    rowNum: 20,
    pager:
    "#jqGridPager"
    });
    });

    </script>


    </body>
    </html>
  • 相关阅读:
    金额小写转大写
    python3 简单抓取网页
    解决IOS下 input 只有底部边框时,出现 四周虚线框的问题
    如何判断是否为PC端 还是 移动端
    PHP如何获取当前主机、域名、网址、路径、端口等参数
    常用less变量定义
    PHP生成验证码2
    extract高级用法 编写简历MVC模式
    js获取文档高度
    Mysql Master-Slave 简单介绍
  • 原文地址:https://www.cnblogs.com/q1104460935/p/6961876.html
Copyright © 2011-2022 走看看