Layui table列中参数转换&Layui table列中的值替换

mac2025-03-22  19

done: function (res, curr, count) { console.log(res); $("[data-field = 'sort']").children().each(function () { if ($(this).text() == '1') { $(this).text("人才"); } else if ($(this).text() == '2') { $(this).text("政策"); } else if ($(this).text() == '3') { $(this).text("项目"); } }) //得到当前页码 console.log(curr); //得到数据总量 console.log(count); }

实现效果:

最新回复(0)