随笔分类 - C#
C#
摘要:如:string str ="abc123;";int i=0; for(string s in str.split(';')) { i++; }输出结果为2分析:"abc123;" 使用";"分割 被分割为两个部分 分别为"abc123"和"" 如果在循环中使用 s进行判断 注意过来空的情况
阅读全文
摘要:1、 Server.MapPath()介绍 Server.MapPath(string path)作用是返回与Web服务器上的指定虚拟路径相对应的物理文件路径。其参数path为Web 服务器的虚拟路径,返回结果是与path相对应的物理文件路径。但有时参数并非为虚拟路径,而是用户自定义的文件名。 Se...
阅读全文

浙公网安备 33010602011771号