此代码将显示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>
我该怎么办?
答案 0 :(得分:0)
尝试
$(".word").typed({strings:['aaa','bbb','ccc','ddd'], typeSpeed: 45,backSpeed: 30,backDelay: 5000,loop: true,loopCount: null});
答案 1 :(得分:0)
将<{1}}和loop
添加到选项
loopCount