var totalRows = $("#<%=GridView_SUB1.ClientID %> tr").length - 1; 转载于:https://www.cnblogs.com/Chinarain/p/3821995.html