<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 返回值:Objectevent.stopImmediatePropagation() ### *V1.3*概述 阻止剩余的事件處理函數執行并且防止事件冒泡到DOM樹上。 除了阻止元素上其它的事件處理函數的執行,這個方法還會通過在內部調用?event.stopPropagation()?來停止事件冒泡。如果僅僅想要停止事件冒泡到前輩元素上,而讓這個元素上的其它事件處理函數繼續執行,我們可以使用[event.stopPropagation()](#)?來代替。 使用?[event.isImmediatePropagationStopped()](#)?來確定這個方法是否(在那個事件對象上)調用過了。 # 注意: 自從[.live()](http://api.jquery.com/live)方法處理事件一旦傳播到文檔的頂部,live事件是不可能停止傳播的。同樣地,[.delegate()](http://api.jquery.com/delegate)?事件將始終傳播給其中包含的被委托元素;元素上的事件將在被委托事件被調用的時候執行。 ### 示例 #### 描述: 阻止調用其它事件處理函數。 ##### 代碼:`` ~~~ <!DOCTYPE html> <html> <head> <style> p { height: 30px; width: 150px; background-color: #ccf; } div {height: 30px; width: 150px; background-color: #cfc; } </style> <script src="http://code.jquery.com/jquery-latest.min.js"></script> </head> <body> <p>paragraph</p> <div>division</div> <script> $("p").click(function(event){ event.stopImmediatePropagation(); }); $("p").click(function(event){ // This function won't be executed $(this).css("background-color", "#f00"); }); $("div").click(function(event) { // This function will be executed $(this).css("background-color", "#f00"); });</script> </body> </html> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看