【发布时间】:2017-06-12 19:17:06
【问题描述】:
在 NextGen Gallary 插件中添加幻灯片后,Chrome 中的错误代码。 Sildeshow页面中的错误部分?我找不到这个页面.. 在页脚中附加了 jQuery i 链接。这和我的 jQuery 文件有冲突吗?
请看附图和代码screenshot of error
JQMIGRATE: Migrate is installed, version 1.4.1
slideshow:212 Uncaught TypeError: jQuery(...).nggShowSlideshow is not a function
at HTMLDocument.<anonymous> (slideshow:212)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
(anonymous) @ slideshow:212
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2
<script type="text/javascript">
jQuery('#ngg-slideshow-8c3cff8f8dc2fd0d87b86cbcbb01a9eb-207510-image-list').hide().removeClass('ngg-slideshow-nojs');
jQuery(function($) {
jQuery('#ngg-slideshow-8c3cff8f8dc2fd0d87b86cbcbb01a9eb-207510').nggShowSlideshow({
id: '8c3cff8f8dc2fd0d87b86cbcbb01a9eb',
fx: 'fade',
width: 1000,
height: 600,
domain: 'https://localhost/marc1/',
timeout: 10000 });
<script type="text/javascript">
jQuery('#ngg-slideshow-8c3cff8f8dc2fd0d87b86cbcbb01a9eb-207510-image-list').hide().removeClass('ngg-slideshow-nojs');
jQuery(function($) {
jQuery('#ngg-slideshow-8c3cff8f8dc2fd0d87b86cbcbb01a9eb-207510').nggShowSlideshow({
id: '8c3cff8f8dc2fd0d87b86cbcbb01a9eb',
fx: 'fade',
width: 1000,
height: 600,
domain: 'https://localhost/marc1/',
timeout: 10000 });
【问题讨论】:
标签: javascript jquery wordpress nextgen-gallery