Layui hint: Table modules: Did not match to field

讨论 未结
1 1721
墨渊
墨渊 2017-12-31
悬赏:20飞吻
{"field":"cardType-d","title":"用户类型","sort":false,"align":"","width":60,"checkbox":false,"space":false,"fixed":""},
{"field":"cardNo","title":"卡号","sort":false,"align":"","width":160,"checkbox":false,"space":false,"fixed":""},
{"field":"createDate","title":"创建时间","sort":false,"align":"","width":190,"checkbox":false,"space":false,"fixed":""},
{"field":"useStatus-d","title":"状态","sort":false,"align":"","width":100,"checkbox":false,"space":false,"fixed":""},
{"field":"balanceAmount","title":"余额","sort":false,"align":"","width":100,"checkbox":false,"space":false,"fixed":""}

{"code":0,"msg":"","count":3,"data":[
{"cardType":"0","cardType-d":"ic卡","cardNo":"12345678","createDate":"2017-12-31","useStatus":"Y","useStatus-d":"正常","balanceAmount":"0.00","oid":"I7O5OVKO41"},
{"cardType":"0","cardType-d":"ic卡","cardNo":"111111","createDate":"2017-12-31","useStatus":"Y","useStatus-d":"正常","balanceAmount":"0.00","oid":"I7O5OWETE1"},
{"cardType":"0","cardType-d":"ic卡","cardNo":"22334455","createDate":"2017-12-31","useStatus":"Y","useStatus-d":"正常","balanceAmount":"0.00","oid":"I7O5OXVWN1"}]}

这样写没有问题吧? 为什么js一直提示layui.all.js:2 Layui hint: Table modules: Did not match to field
显示也正常,没有少东西,就是js一直提示
回帖
  • 贤心
    贤心 (管理员)
    2017-12-31
    你 table.render 时,某个列中填写了一个字段名,在你返回的数据中没有匹配到
    0 回复
本帖已设置禁止回复