将我上传到webhost后,Fancybox框无效,但可以在localhost上使用

编程入门 行业动态 更新时间:2024-10-17 20:26:24
本文介绍了将我上传到webhost后,Fancybox框无效,但可以在localhost上使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

www.outofthegardendesigns

有什么想法?

我认为它与路径有关但我不确定我做错了什么。

I think it has something to do with the pathing but I'm not sure what I'm doing wrong.

推荐答案

您正在多次添加jQuery。

You are adding jQuery multiple times.

此网址的两次 js / libs / jquery-1.7.1.js 然后再次使用google cdn,如果google cdn处于离线状态,则再次回退。我想,这是造成冲突的原因。因为,在你的本地主机上,你可能处于离线状态,google cdn jQuery没有加载,一切正常。但是当你在服务器中打开它时,google cdn jQuery会尝试加载并花费时间并抛出错误。

Two times from this url js/libs/jquery-1.7.1.js and then again with google cdn and again a fallback if google cdn is offline. I guess, this is causing conflict. Since, on your localhost you may be offline, google cdn jQuery is not loading and everything is working fine. But when you open it in server, google cdn jQuery tries to load and takes time and throws an error.

更多推荐

将我上传到webhost后,Fancybox框无效,但可以在localhost上使用

本文发布于:2023-11-28 15:18:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642929.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我上   webhost   localhost   Fancybox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!