doupingdiao3546 2015-04-03 13:43
浏览 96

js和css文件 - 在public_html之外或之内?

I understand that it is a good idea to keep some files outside public_html for security reasons. What about js files? Should I keep all my js files (such as angularjs') in public_html or outside?

If I keep them outside public_html, it is going to be difficult to execute them on the browser, isn't? How can I execute them then if they are stored outside public_html directory?

It must be the same for CSS files too, right?

  • 写回答

2条回答 默认 最新

  • duanboniao5903 2015-04-03 13:45
    关注

    Everywhere I have worked, the CSS and JS files are stored inside public_html so that they can be referenced/loaded by the "public".

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog