layui根据name获取对象_浅谈layui分页控件field参数接收对象的问题

第一次使用layui分页控件,遇到的问题。。field: 'type.typeName' 获取不到值。

页面代码

table.render({

elem: '#bookTable'

,height: 'full-20'

,url: '/admin/getBook' //数据接口

,request: {

pageName: 'begin' //页码的参数名称,默认:page

,limitName: 'length' //每页数据量的参数名,默认:limit

}

,page: true //开启分页

,even: true

,cols: [[ //表头

{checkbox: true, fixed: true}

,{field: 'bookid', title: 'ID', width:80, sort: true, fixed: 'left'}

,{field: 'bookname', title: '书名', width:250}

,{field: 'bookauthor', title: '作者', width:150}

,{field: 'bookpress', title: '出版社', width:150}

,{field: 'type', title: '类型', width:80}

,{fixed: 'right', title: '操作',width

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值