string disIds = "1,2,3,4,5,6,7,8,9,";
string[] filePath = disIds.Split(',');

//去掉最后一位空值
string[] filePath2 = new string[filePath.Length - 1];
     for (int i = 0; i < filePath.Length-1; i++)
     {
         filePath2[i] = filePath[i];
     }

 

相关文章:

  • 2022-12-23
  • 2021-07-08
  • 2021-09-13
  • 2022-01-04
  • 2021-11-19
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-11-19
  • 2021-10-15
  • 2021-12-27
  • 2022-01-31
  • 2022-12-23
相关资源
相似解决方案