layui table 改

Posted enych

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了layui table 改相关的知识,希望对你有一定的参考价值。

    F.prototype.pullData = function(e) 

   success: function (t) 
                    var da001 = i;
                    window.getdata1234567(da001);
                    "function" == typeof a.parseData && (t = a.parseData(t) || t),
 ////F.prototype.renderData = function(e, n, o, r) ;  e=json对象;n =第几页,o=总数据数;r=未定义 
  window.getobj.renderData(e,1,21);
window.getdata1234567 = function (data) 
    window.getobj = data;

layui.define(...);
  case ‘reload‘:
                //调用table.pullData
                ////F.prototype.renderData = function(e, n, o, r) ;  e=json对象;n =第几页,o=总数据数;r=未定义 
                var jsonstr = ‘"code": 0,"msg": "","count": 21,"data":["IsDel":false,"EventGuideId":1028,"ReceiveDepId":8,"ReceiveDepName":"工商","PositionInfo":null,"EventGuideContent":"士大夫","CertificateName":"","Sort":1,"Remark":"","CreateUserName":"sysadmin","CreateRealName":"超级管理员","CreateTime":"2019-09-20T20:45:31.66","ModifyUserName":null,"ModifyRealName":null,"ModifyTime":null,"IsDel":false,"EventGuideId":1027,"ReceiveDepId":8,"ReceiveDepName":"工商","PositionInfo":null,"EventGuideContent":"阿什福","CertificateName":"","Sort":1,"Remark":"","CreateUserName":"sysadmin","CreateRealName":"超级管理员","CreateTime":"2019-09-20T20:45:27.483","ModifyUserName":null,"ModifyRealName":null,"ModifyTime":null,"IsDel":false,"EventGuideId":1026,"ReceiveDepId":8,"ReceiveDepName":"工商","PositionInfo":null,"EventGuideContent":"阿什福","CertificateName":"","Sort":1,"Remark":"","CreateUserName":"sysadmin","CreateRealName":"超级管理员","CreateTime":"2019-09-20T20:45:21.973","ModifyUserName":null,"ModifyRealName":null,"ModifyTime":null,"IsDel":false,"EventGuideId":1025,"ReceiveDepId":8,"ReceiveDepName":"工商","PositionInfo":null,"EventGuideContent":"萨芬","CertificateName":"","Sort":1,"Remark":"","CreateUserName":"sysadmin","CreateRealName":"超级管理员","CreateTime":"2019-09-20T20:45:18.573","ModifyUserName":null,"ModifyRealName":null,"ModifyTime":null,"IsDel":false,"EventGuideId":1024,"ReceiveDepId":8,"ReceiveDepName":"工商","PositionInfo":null,"EventGuideContent":"萨芬","CertificateName":"","Sort":1,"Remark":"","CreateUserName":"sysadmin","CreateRealName":"超级管理员","CreateTime":"2019-09-20T20:45:15.527","ModifyUserName":null,"ModifyRealName":null,"ModifyTime":null,"IsDel":false,"EventGuideId":1023,"ReceiveDepId":8,"ReceiveDepName":"工商","PositionInfo":null,"EventGuideContent":"萨芬分是","CertificateName":"","Sort":1,"Remark":"","CreateUserName":"sysadmin","CreateRealName":"超级管理员","CreateTime":"2019-09-20T20:45:11.867","ModifyUserName":null,"ModifyRealName":null,"ModifyTime":null]‘;
                var e = JSON.parse(jsonstr);
                var t = table;
                var that = this;
                window.getobj.renderData(e,1,21);
    

 

以上是关于layui table 改的主要内容,如果未能解决你的问题,请参考以下文章

如何对layui table进行自定义

layui table参数怎么传到后台

layui的table怎么改变分页的颜色

layui table cols有没有回调函数?

layui教程---table

layui table 跨页记忆选择