layui用户自定义列显示

layui用户自定义列显示

		intCols();
        function intCols() {
            $.ajax({
                url: "/Purchase/Filtratelist",
                method: "post",
                data: { "html": "Supplier" },
                dataType: 'json',
                type: 'delete',
                success: function (result) {
                    for (var i = 0; i < cols[0].length; i++) {
                        if (cols[0][i].field != undefined) {
                            for (var j = 0; j < result.data.length; j++) {
                                if (result.data[j]['fild'] == cols[0][i].field) {
                                    cols[0][i].hide = result.data[j]['hide'];
                                }
                            }
                        }
                    }
                    
                    table.reload('testde

你可能感兴趣的:(layui)