标签: c# html path
文件路径看起来像"wwwroot\\documents\\file.png",但Web平台不喜欢这种样式,img HTML标记src的值需要"/wwwroot/documents/file.png"。
"wwwroot\\documents\\file.png"
img
src
"/wwwroot/documents/file.png"
System.IO.Path.Combine无法满足我的需求。
System.IO.Path.Combine
除了Replace("\\","/");以外我还能做什么?
Replace("\\","/");