【发布时间】:2012-02-25 16:42:26
【问题描述】:
我在这里做错了什么。动画滑出导航,但不能滑回。
$(document).ready(function() {
$('.navLink').click(function(e){
var navCount=0;
if (navCount==0) {
$('.navigation').stop().animate({'marginLeft':'0px'}, 200);
$('#waitingPage').stop().animate({'marginLeft':'230px'}, 200);
var navCount=1;
}else if (navCount==1){
$('.navigation').stop().animate({'marginLeft':'-230px'}, 200);
$('#waitingPage').stop().animate({'marginLeft':'0px'}, 200);
var navCount=0;
};
});
});//END ready
【问题讨论】:
标签: jquery mobile navigation boolean tablet