<div class="parent">
        <div class="child">
        </div>
    </div>
    <script type="text/javascript">
    $(document).on("click", ".parent", function(event){
        doAjaxCall();
    });
    $(document).on("click", ".child", function(event){
        doSomething(); // and DON'T call doAjaxCall();
    });
</script>
event.stopPropagation();而且return false;也不工作。可能是什么问题呢?
编辑:好的,很明显它正在使用 js fiddle:http: //jsfiddle.net/Smbb4/ 我必须再次检查我的代码..
编辑2:解决方案:
    $('.parent').click(function(event) {
        if ( $(event.target).closest('.child').length > 0 ) {
            var close = $(event.target).closest('.child');
            var windowID = close.data('windowid');
            closeWindow(windowID);
            return false;
        }
        });