0
我有2个功能,我想一次又一次地重复:不会jQuery的切换不会再次触发
function rotation() {
plrotation();
function plrotation() {
alert('pl');
$('#pl').toggle(300).delay(10000).toggle(400).delay(2000, function(){errotation()});
alert('pl end');
}
function errotation() {
alert('er');
$('#er').toggle(300).delay(10000).toggle(400).delay(2000, function(){plrotation()});
alert('er end');
}
}
但第一次后,我得到的“PL”和“PL结束”的警报,但切换发生,并且错误也没有开始......任何我做错的想法是错误的? (show element 1 => wait => hide element1 => wait => show element 2 => wait => hide element 2 => wait => restart)
OK了... .. MHM现在我觉得哑巴...... :) –
哦,非常感谢你! :) –