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.
有没有办法获取项目的当前目录?我正在尝试使用动态路径加载图像,但链接似乎已损坏。但看到正在运行的项目的当前目录,我将能够确保我的图片链接有效。
谢谢
在您的终端上使用 AIR,或者在 Internet 上使用服务器端脚本。闪存中有一些安全措施可以防止任何人从闪存中损坏您的计算机,因此您可能无法做到这一点。但是,如果您在访问内容时遇到问题,也可能是由于访问权限,您可以访问本地或网络资源,我认为它默认为网络。