当前位置: 代码迷 >> ASP.NET >> 脚本中,怎么将01显示为0001
  详细解决方案

脚本中,怎么将01显示为0001

热度:5660   发布时间:2013-02-26 00:00:00.0
脚本中,如何将01显示为0001
脚本中,如何将01显示为0001

------解决方案--------------------------------------------------------
string str = "01 ";
Response.Write(str.PadLeft(4, '0 '));