function initCase $#tableModulehide; $#demoModuleshow; $#wordPicturehide; $#indexNextParthide; var checkCase = $#checkCaseval; 第一个ajax获取count总数 $ajax
function initPolicy() { var checkPolicy = $("#checkPolicy").val(); //第一个ajax获取count总数 $.ajax({ type: "POST", url: rootPath + "/policiesAndRegulations/countPoliciesAndRegulations.html", data: {query: checkPolicy}, dataType: "json", success: function (json) { $("#total").html(json.data); $("#time").html(getCurrentDate()); table.render({ elem: "#table", url: rootPath + "/policiesAndRegulations/queryPoliciesAndRegulations.html", where: { query: checkPolicy, }, page: true, size: 'lg', even: false, defaultToolbar: false, unresize: true, cols: [[ { field: 'lawsName', title: '内容', templet: '#policyData' } ]], response: { statusCode: 170000 }, parseData: function (res) { return { "code": res.errorCode, "msg": res.msg, "count": json.data, "data": res.data }; } }); } });
原文地址: https://www.cveoy.top/t/topic/ik0i 著作权归作者所有。请勿转载和采集!