C# string.format() 格式化说明符
一、定义<br />String.Format是将指定的 String类型的数据中的每个格式项替换为相应对象的值的文本等效项。 <br />如:<br />(1)<br />string p1 = "Jackie";<br />string p2 = "Aillo";<br />Response.Write(String.Format("Hello {0}, I'm {1}", p1, p2));<br />(2)<br />Response.Write(String.Format("Hello {0},
原创
2010-10-06 10:44:00 ·
1197 阅读 ·
0 评论