解决方案 »

  1.   

    你应该在回调中处理转向,即效果完成之后,类似如下,淡出后转向<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    .box{width:500px;height:500px;background:red;}
    </style>
    <!-- jQuery library (served from Google) -->
    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <script>
    $(document).ready(function(){
     $('#test').click(function(){
     $(".box").fadeOut('slow',function(){
     window.location='http://www.baidu.com';
     });
    });
    });
    </script>
    </head><body>
    <a href="javascript:;" id="test">点击</a>
    <div class="box"></div>
    </body>
    </html>
      

  2.   

    addClass里面可以加回调函数么? 报错啊不好意思我是新手
      

  3.   

    你的代码只是给body,添加了两个样式,动画的效果也不在这,你应该去找动画的回调
      

  4.   

    动画是在css里面 这个要怎么找回调?能不能说具体点
      

  5.   

    最简单的方法估计是你给动画家个时间比如500
    然后跳转动作加延时.delay(500)......
    这样你就能看见动画了....