开启jquery?

发布于 2024-12-05 05:43:58 字数 587 浏览 7 评论 0原文

我有网站 A: http://dl.dropbox.com/u /3264697/calc/v2/index.html 它正在按预期工作,100%。

我有网站 B: http://pe2kasb.net63.net/ 它没有按预期工作。网站B是A的文件镜像的文件。

我想,这是主机的问题。查看 Javascript 控制台,错误似乎与主机有关:

屏幕截图此处 http: //img825.imageshack.us/img825/4782/unlednwe.png

我需要联系他们,或者我可以做些什么......?我是 JQuery 的新手,我相信这就是问题的根源,但是......我不确定。

I have website A: http://dl.dropbox.com/u/3264697/calc/v2/index.html
It is working as intended, 100%.

I have website B: http://pe2kasb.net63.net/
It is not working as intended. Website B is a file for file mirror of A.

I assume then, this is something wrong with the host. Looking at the Javascript console, the error appears to be related to the host:

screenshot here http://img825.imageshack.us/img825/4782/unlednwe.png

Need I contact them, or is there something I can do...? I'm new to JQuery, and I believe that's what is the root of the issue but... i'm not sure.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

信愁 2024-12-12 05:43:58

您正在尝试从 ../v2/media/js/jquery.js 加载 jQuery,但第二个网站中没有此类文件。

我建议您不要自己托管 JQuery,而是使用托管版本:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript">
</script>

这篇文章解释了原因。

You are trying to load jQuery from ../v2/media/js/jquery.js but there is no such file in the second website.

I recommend that instead of hosting JQuery yourself, you use a hosted version:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript">
</script>

This post explains the reasons.

我只土不豪 2024-12-12 05:43:58

您在 http://pe2kasb.net63.net/ 处的 jQuery 路径无效,

替换

<script type="text/javascript" src="../v2/media/js/jquery.js"></script> 

<script type="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> 

Also you have dataTable.js丢失的。

You have invalid jQuery path at http://pe2kasb.net63.net/

Replace

<script type="text/javascript" src="../v2/media/js/jquery.js"></script> 

with

<script type="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> 

Also you have dataTable.js missing.

蓝天 2024-12-12 05:43:58

您正在从 ../v2/media/js/jquery.js 加载 JQuery,该 JQuery 似乎不存在...

为了解决该问题并提高网站速度,

  1. 请勿将 JQuery 存储在服务器,而不是从第 3 方加载它(Google 工作得很好)
  2. 使用 JQuery 缩小版本

要从 Google 加载 JQuery,您只需使用:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
    google.load("jquery", "1");
</script>

更多信息 此处

编辑:请注意,上面会自动加载 JQuery 的缩小版本。如果出于某种原因(?)您想加载可以使用的未压缩版本

google.load("jquery", "1", {uncompressed:true});

You are loading JQuery from ../v2/media/js/jquery.js which does not seem to exist...

To solve the issue and improve the speed of the website

  1. do not store JQuery on the server, rather load it from a 3rd party (Google works well)
  2. use JQuery minified version

To load JQuery from Google you can just use:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
    google.load("jquery", "1");
</script>

More information here

EDIT: note that the above automatically loads the minified version of JQuery. If, for whatever reason (?) you wanted to load the uncompressed version you could use

google.load("jquery", "1", {uncompressed:true});
﹂绝世的画 2024-12-12 05:43:58

看看http://pe2kasb.net63.net/v2/media/js/jquery .js 指的是。
该文件不存在。
上传它或从其他位置包含它。

Look what http://pe2kasb.net63.net/v2/media/js/jquery.js refers to.
The file does not exist.
Upload it or include it from another location.

放低过去 2024-12-12 05:43:58

确保 jQuery 正确链接,目前 jQuery 应该位于“http://pe2kasb.net63.net/”上的“../v2/media/js/jquery.js”,这意味着返回一个文件夹然后输入“/v2/media/js/jquery.js”。

Make sure that jQuery is correctly linked, currently jQuery is supposed to be at "../v2/media/js/jquery.js" on "http://pe2kasb.net63.net/", which means go back one folder then enter "/v2/media/js/jquery.js".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文