jQuery无法加载 [英] jQuery not loading

查看:158
本文介绍了jQuery无法加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用php.

当我在Google的服务器上使用jquery-1.3.2-min.js时,它将加载并且一切运行正常.

When I use the jquery-1.3.2-min.js on google's server, it loads and everything runs fine.

但是当我尝试使用我下载到服务器上的那个时,Firebug会给我以下信息:

But when I try to use the one I downloaded to my server, Firebug gives me this:

1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2<html><head>
3<title>403 Forbidden</title>
4</head><body>
5<h1>Forbidden</h1>
6<p>You don't have permission to access /path/to/scripts/jquery-1.3.2.min.js
7on this server.</p>
8<hr>
9<address>Apache/2.2.12 (Ubuntu) Server at localhost Port 80</address>
10</body></html> 

我该如何解决?我是否必须更改Apache中的某些设置.

How can I fix it? Do I have to change some settings in Apache.

另一件事是还有另一个js文件(使用jquery的文件)可以正常加载.它与jquery-1.3.2.min.js位于同一文件夹(即在scripts文件夹中).

The other thing is there is another js file (the one that uses the jquery) that loads just fine. It is in the same folder as the jquery-1.3.2.min.js (i.e. in the scripts folder).

推荐答案

听起来像文件本身的权限问题.尝试

Sounds like a permissions issue on the file itself. Try

chmod 755 /local/path/to/jquery-1.3.2.min.js

这篇关于jQuery无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆