无法获得巨大的弹出工作,两个javascript错误 [英] Can't get magnific popup to work, two javascript errors

查看:79
本文介绍了无法获得巨大的弹出工作,两个javascript错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个灯箱库,并使用了示例源代码。

I am trying to make a lightbox gallery and have used the example source code.

这是我读过的文档: http://dimsemenov.com/plugins/magnific-popup/documentation.html

Uncaught TypeError: undefined is not a function

Uncaught ReferenceError: $ is not defined 

我不确定错误的含义或使用方法。

在我看过的视频教程中,他们谈到了一个关于jquery冲突的问题。在网站的另一页上,我使用了Kwicks滑动菜单(也使用了jquery)。这是我唯一能想到的。

In a video tutorial I watched, they said something about a jquery conflict being a potential problem. On a different page of the website, I used a Kwicks sliding menu (which also used jquery). That's the only thing I can think of.

我真的很感激你能给我的任何帮助!

I would really appreciate any help you would be able to give me!

谢谢!没有更多的错误,但现在我需要使用放大光标放大图像上的悬停。

我做了悬停工作,现在我需要放大放大光标工作。我附上了一个页面,说明我在光标悬停时的光标。

示例: http:/ /dimsemenov.com/plugins/magnific-popup/

我已经找到了变焦光标!感谢您的帮助!

推荐答案

插件的文档 Magnific popup 建议 -

The documentation of the plugin Magnific popup you are using suggests -

包括文件

<!-- jQuery 1.7.2+ or Zepto.js 1.0+ -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 

<!-- Magnific Popup core JS file -->
<script src="magnific-popup/jquery.magnific-popup.js"></script>

记住:你需要包含jQuery文件引用,对于插件来说工作;而是每个jQuery插件。并按指定的顺序。这是 $未定义的唯一原因未定义的函数

Remember : You need to include jQuery file reference, for the plugin to work; rather every jQuery plugin. And in the specified order. This is the sole reason behind $ not defined and undefined in not a function.

这篇关于无法获得巨大的弹出工作,两个javascript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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