jquery 隐藏最后几列
var lastTdIndex = $("#processForm_DataGrid1 tr td:last")[0].cellIndex;
var headerTdLastIndex = $("#processForm_DataGrid1 tr[class=DgHeader]:eq(0) td:last")[0].cellIndex;
$("#processForm_DataGrid1 tr[class=DgHeader]:eq(0), #tbGridHead tr[class=DgHeader]:eq(0)").find("td:gt(" + (headerTdLastIndex - 4) + ")").hide();
$("#processForm_DataGrid1 tr:gt(1)").find("td:gt(" + (lastTdIndex - 5) + ")").hide();
var headerTdLastIndex = $("#processForm_DataGrid1 tr[class=DgHeader]:eq(0) td:last")[0].cellIndex;
$("#processForm_DataGrid1 tr[class=DgHeader]:eq(0), #tbGridHead tr[class=DgHeader]:eq(0)").find("td:gt(" + (headerTdLastIndex - 4) + ")").hide();
$("#processForm_DataGrid1 tr:gt(1)").find("td:gt(" + (lastTdIndex - 5) + ")").hide();
走向地狱的途中,不小心走了程序员这条路,路上一个个黑心的老板,和暗无天日的加班,我才发现,通往地狱的路径中,我们这行是最短的。