判断

    <script>
                $(function(){
                    $('a').click(function(){
                        if($(this).hasClass('close')){
                            $(this).css('display','none');
                            $(this).siblings('a').css('display','inline');
                            
                        }else if($(this).hasClass('open')){
                            $(this).css('display','none');
                            $(this).siblings('a').css('display','inline');
                        }
                    })
                })
            </script>

posted @ 2015-08-14 10:02  简单就好zyx  阅读(106)  评论(0)    收藏  举报