asp.net中怎么截取中文字符串

2025-04-06 20:14:56
推荐回答(1个)
回答1:

例如:
string image=@"csks/news/user_top/qqqq/qqqq.jpg";
image = image.Replace("/", @"\"); // 替换 .Replace("被替换字符", "替换的字符")
Response.Write(image); //在页面上输出!