如何用无限循环显示这个功能?

时间:2017-04-15 03:35:07

标签: javascript jquery

此代码将显示aaa ===> bbb ===> ccc ===> ddd为单循环,我想知道如何用无限循环显示?

https://jsfiddle.net/fe0mkdf4/3/

...

<script>
$(document).ready(function() {
    $(".word").typed({strings:['aaa','bbb','ccc','ddd'], typeSpeed: 45,backSpeed: 30,backDelay: 5000});
});
$(window).load(function(){init();});
</script>

我该怎么办?

2 个答案:

答案 0 :(得分:0)

尝试

 $(".word").typed({strings:['aaa','bbb','ccc','ddd'], typeSpeed: 45,backSpeed: 30,backDelay: 5000,loop: true,loopCount: null});

答案 1 :(得分:0)

将<{1}}和loop添加到选项

loopCount