【发布时间】:2017-01-12 04:48:20
【问题描述】:
我正在运行一个应该上下切换的脚本
$(document).ready(function(){
$('#movedown').toggle(function() {
$(".menu2").animate({top: '-=1512px'}, 500);
}, function() {
$(".menu2").animate({top: '+=1512px'}, 500);
});
});
它不会切换http://toddheymandirector.com/index_mobile99.html,但如果我用点击替换切换,它会向下滑动http://toddheymandirector.com/index_mobile88.html 我哪里错了?
【问题讨论】:
标签: javascript jquery toggle