javascript - 将 Bigfoot.js 与 Apache Web 服务器结合使用

标签 javascript jquery apache

我正在尝试嵌入 bigfoot.js到我的网站。我按照步骤在 httpdocs 中创建一个名为 js 的目录,并将 bigfoot 和 jquery 文件复制到那里。

我还在标题中添加了以下 JS 代码

<script type="text/javascript" src="js/jquery-2.2.3.js"></script>
<script type="text/javascript" src="js/bigfoot.js"></script>
<script type="text/javascript">
    $.bigfoot();
</script>

Safaris 错误日志告诉我 jquery-2.2.3.js 和 bigfoot.js 未在domain.com/js/file.js 中找到。我该怎么做才能在此路径上启用这些文件访问?

最佳答案

我的index.html 位于错误的子目录中...

关于javascript - 将 Bigfoot.js 与 Apache Web 服务器结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36715247/

相关文章:

javascript - YUI 3 : How do I break out of NodeList . 一些()循环?

javascript - 为什么以下解析代码不返回错误?

javascript - CSS 背景图像未显示在 Android 设备中

javascript - 水平滚动时制作静态div

jquery - 如何删除json文件中一些不必要的空格?

python - Django 源代码不会在服务器上更新

通过 SSL 的 jQuery Ajax 请求

javascript - 如何在页面加载时保留或选择最后一个事件 Node 状态

apache - 使用 Tomcat 的重写阀

linux - 如何阻止鱿鱼中的所有连接