Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Flex 中获取文件路径的扩展名。在 C# 中,我将只使用 Path.GetExtension() 来执行此操作。
Flex中是否有等价物,还是我必须自己编写?
您使用的是在 AIR 中运行的 Flex 应用程序吗?如果是,您可以:
var file:File = new File("c:\\myfile.bat"); trace(file.extension);