文章分类 -  layui

layui数据表格参数
摘要:table.render({ elem: '#demo' ,url: AppName + '/app/api/version/query' //数据接口 ,method:'post' ,contentType:"application/json;charset=UTF-8" ,headers:{ ' 阅读全文

posted @ 2021-12-07 17:20 hi-gdl 阅读(491) 评论(0) 推荐(0)

layui对json数据的格式要求
摘要:layui有自己的一套特定的数据格式交互,必须参数code:0,msg:“”,count:数据size(int),data:”数据List”。**一般我们选择封装返回接收类**。 若想要绑定数据到layui的数据表格必须遵从其对json数据的规范格式。 格式如下: { "code": 0, "msg 阅读全文

posted @ 2021-12-07 16:52 hi-gdl 阅读(740) 评论(0) 推荐(0)

导航