如知道了一串文件名,得到扩展名如下:
string ImgPath="http://www.cnblogs.com/abc/aa.jpg"; string tem = Path.GetExtension(ImgPath);
Powered by: 博客园 Copyright © 2024 股墓山庄庄主 Powered by .NET 9.0 on Kubernetes