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.
在我的应用程序中,我必须定期从外部服务下载报告。基本结构是几个文件夹,每个文件夹都包含它自己的 index.html 以及 css 和图像。我应该把这些文件夹放在哪里以便我的用户能够访问它?我将提供网址,无需列出文件。
假设您想将其他内容放在您的应用程序中,它会放在public您应用程序的文件夹中。
public
如果我的应用程序中有这样的文件:
public/external/index.html
然后最终用户应该在点击时看到它:
http://application.com/external/
...无需调用任何应用程序的代码。