jquery 点击除操作区域外的任意区域,将操作区域隐藏

$(document).ready(function(){
        $(document).bind('click', Hide);
    });
    
    function Hide(e){
        if($(e.target)[0].id =="habitContent")
            return;
        $("#habitContent").hide();
    }

posted @ 2012-10-10 11:27  tangrongyue  Views(238)  Comments(0Edit  收藏  举报