zoukankan      html  css  js  c++  java
  • EasyUI篇のDataGrid

    HTML:

    <table id="dg"></table> 或者 <div id="dg"></div>

    JS:

    $('#dg').datagrid({
            url: '/AdminNewList/GetList',
            method: 'post',
            rownumbers: true,
            columns: [[
                { field: 'ck', checkbox: true },
                { field: 'title', title: '标题', 200, align: 'center' },
                { field: 'author', title: '作者', 100, align: 'center' },
                { field: 'subDateTime', title: '时间', 150, align: 'center' },
                { field: 'msg', title: '详细', 400, align: 'center' },
                { field: 'delete', title: '删除', 100, align: 'center' },
                { field: 'editor', title: '修改', 100, align: 'center' }
            ]]
        });

    注:后台GetList方法,返回的是json字符串

  • 相关阅读:
    微信红包高并发交易
    MQ夺命11问
    美团雪花LEAF算法
    Mysql一遍过
    分布式
    如何注册和发现服务
    服务发布和引用
    微服务的构成
    什么是微服务
    Java的动态代理
  • 原文地址:https://www.cnblogs.com/dabexiong/p/4972370.html
Copyright © 2011-2022 走看看