0

我使用jcoverflip创建图像轮播。我必须动态添加图像并且需要重新初始化 coveflip。

我从那里尝试了解决方法

$('#flip').jcoverflip(); //Build it
$('#flip').jcoverflip('destroy'); //All the elements are there but jCoverflip is gone
//Add and remove elements
$('#flip').jcoverflip(); //Build again

但在销毁时出现以下错误

Uncaught TypeError: Cannot call method 'apply' of undefined为了$.widget.prototype.destroy.apply( this, arguments );

4

1 回答 1

0

vlc的 jcoverflip 的修改版本对我有用。

于 2012-12-06T23:59:07.373 回答