标签:ceiling div update nbsp rgba each ons span class
// 待分页的List集合 var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; // 每页数量 var pageSize = 3; // 计算页数 var pageCount = Math.Ceiling(1.0 * list.Count / pageSize); for (int page = 1; page <= pageCount; page++) { var updateList = list.Skip(pageSize * (page - 1)).Take(pageSize); foreach (var t in updateList) { Console.WriteLine(t); } }
标签:ceiling div update nbsp rgba each ons span class
原文地址:https://www.cnblogs.com/tomorrow0/p/14771753.html