function stopPropagation(e) {
            if (e.stopPropagation) 
                e.stopPropagation();
            else 
                e.cancelBubble = true;
        }

        $(document).bind('click',function(){
            $('#test').css('display','none');
        });

        $('#test').bind('click',function(e){
            stopPropagation(e);
        });

标签: none

添加新评论