Twitter bootstrap blueimp/引导映像库扩展错误:this.container.children不是函数

Twitter bootstrap blueimp/引导映像库扩展错误:this.container.children不是函数,twitter-bootstrap,gallery,blueimp,Twitter Bootstrap,Gallery,Blueimp,我需要你的帮助 我有一个使用lightbox的blueimp画廊。我想添加如下所示的扩展: 其想法是在点击缩略图(图像周围的白色模式)时实现额外的设计 既然blueimp gallery已经开始工作了,对我来说这应该是一个简单的改变,但是我遇到了一个错误。这将出现在firebug上: TypeError:this.container.children不是函数 http://www.smile-fnd/js/blueimp-gallery/bootstrap-image-gallery.min

我需要你的帮助

我有一个使用lightbox的blueimp画廊。我想添加如下所示的扩展:

其想法是在点击缩略图(图像周围的白色模式)时实现额外的设计

既然blueimp gallery已经开始工作了,对我来说这应该是一个简单的改变,但是我遇到了一个错误。这将出现在firebug上:

TypeError:this.container.children不是函数
http://www.smile-fnd/js/blueimp-gallery/bootstrap-image-gallery.min.js
第1行

…)返回d.call(this,a,b,c);var e=this,f=this.container.children(“.modal”),g=f.cl..
编辑JS文件并尝试下一个更改:

this.container

$(this.container)


jQuery(this.container)

我遇到了同样的问题。修复很简单,只需使用即可:

blueimp-gallery/jquery.blueimp-gallery.min.js
而不是:

blueimp-gallery/blueimp-gallery.min.js
可能原因:如果您在项目中使用jQuery,您也应该使用此插件的jQuery版本。

也有同样的问题。 您可以通过更改

this.container.children

然后,您将在上看到一个新错误

f.clone
因此,通过改变它

$(f).clone
这对我有用

你能解释一下为什么会这样吗?
$(f).clone