替换为带有新项目的旋转木马内胆 [英] ReplaceWith carousel-inner with new items

查看:103
本文介绍了替换为带有新项目的旋转木马内胆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

社区:-)

这是我的第一个问题.有相似之处,但我有一个非常特殊的问题. 我尝试按需更改自举轮播的项目-但此后会冻结. 如果这样做,它将显示第一个活动状态,但是我无法使用滑动按钮和指示器. 我演示我用setTimeout 10 Seconds触发了替换.因此,您可以看到10秒的静态编码项,然后将其替换为JQuery ReplaceWith.

this is my first Question. There are similar but I have a very special problem. I try to change the items of an bootstrap carousel on demand - but it frozes after that. If I do, it shows the first active but I cannot use the slide buttons and indicators. I the Demo I have triggered the replacement with setTimeout 10 Seconds. So you can see 10 Seconds the static coded items and after that it will be replaced by JQuery ReplaceWith.

是否有刷新命令或类似命令?

Is there a refresh command or similar ?

推荐答案

我测试了您的链接代码,发现必须替换为孔

I tested with your linked code and figured out you have to replaceWith the hole

< div class="view">

包括轮播控制链接.另外,我还在您的for循环中替换了#carousel-363119 .

including the carousel-control links. Also I replaced the #carousel-363119 in your for loop.

通过这种方式,jquery的工作就像我们添加了一个新的孔轮播.

That way jquery works like we add a hole new carousel.

这篇关于替换为带有新项目的旋转木马内胆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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