首页 > 其他 > 详细

layui的table.render使用

时间:2021-07-10 15:58:06      阅读:12      评论:0      收藏:0      [点我收藏+]
 var tableIns = table.render({
        elem: #recordList,  // 指向页面组件id
        where: { UId: 1 },  // 传递参数
        url: /Manager/GetList/,  // 异步获取数据
        cellMinWidth: 95,
        page: true,  // 开启分页
        height: "full-125",
        limits: [10, 15, 20, 25],
        limit: 10,   // 每页条数
        id: "recordListTable",  // 本表id
        cols: [[
            { type: "checkbox", fixed: "left", width: 50 },
            { field: "ID", title: ID, width: 120, minWidth: 90, align: "center" },
            { field: Time, title: 日期, minWidth: 180, align: "center" },
            { field: Name, title: 名字, minWidth: 180, align: "center" },
            { field: Content, title: 内容, minWidth: 400, align: center },
            { field: IsLock, title: 是否锁定, minWidth: 100, fixed: "right", align: "center", templet: #IsLock },
            { title: 操作, minWidth: 150, templet: #recordListBar, fixed: "right", align: "center" }
        ]]
    });

 

layui的table.render使用

原文:https://www.cnblogs.com/qq2806933146xiaobai/p/14993370.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!