下面的jQuery什麼都不做。 我錯過了逗號或什麼?以下jQuery有什麼問題
<script>
$(".link<? echo $counter; ?>").click(function() {
$('.sub').toggle(function() {
$(".sub<? echo $counter; ?>").animate({
height: ($(this).parent().height() * <? echo(count($$vari)); ?>) + 20
}, 1000);
}, function() {
$(".sub<? echo $counter; ?>").animate({
height: 0
}, 1000);
});
});
</script>
控制檯不特羅任何錯誤的,當我更改代碼以
<script>
$(".link<? echo $counter; ?>").click(function() {
$(".sub<? echo $counter; ?>").animate({
height: ($(this).parent().height() * <? echo (count($$vari)); ?>) + 20
}, 1000);
});
</script>
該腳本(除了撥動ofcource)
什麼是控制檯錯誤和$$ vari的含義是什麼? –