个人认为无需讲解,请看实例。

 

   /// <summary>
        /// 处理空页问题
        /// sky 2010年2月9日
        /// </summary>
        /// <param name="anyList"></param>
        private void RemoveNullJsTree(List<JsTree> anyList)
        {
            for (int i = anyList.Count - 1; i >= 0; i--)
            {
                if (anyList[i].children == null)
                {
                    anyList.Remove(anyList[i]);
                }
            }
        }

相关文章:

  • 2021-11-12
  • 2021-11-20
  • 2021-10-12
  • 2022-01-03
  • 2021-12-28
  • 2022-12-23
  • 2021-11-17
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
相关资源
相似解决方案