从后台数据库获取某个字段如下:
string path=“http://127.0.0.1:1111/Upload/20200417/aaa9754-4865-808e-94738f636b6c.png”;
如何只要Upload及其后面的内容?
想要的结果是:Upload/20200417/aaa9754-4865-808e-94738f636b6c.png
var uri = new Uri("http://127.0.0.1:1111/Upload/20200417/aaa9754-4865-808e-94738f636b6c.png");
Console.WriteLine(uri.AbsolutePath);
意思就是path?什么语言?