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上使用
发布评论