久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        <small id='UU8Cy'></small><noframes id='UU8Cy'>

        <tfoot id='UU8Cy'></tfoot>
        • <bdo id='UU8Cy'></bdo><ul id='UU8Cy'></ul>
        <legend id='UU8Cy'><style id='UU8Cy'><dir id='UU8Cy'><q id='UU8Cy'></q></dir></style></legend>
      1. <i id='UU8Cy'><tr id='UU8Cy'><dt id='UU8Cy'><q id='UU8Cy'><span id='UU8Cy'><b id='UU8Cy'><form id='UU8Cy'><ins id='UU8Cy'></ins><ul id='UU8Cy'></ul><sub id='UU8Cy'></sub></form><legend id='UU8Cy'></legend><bdo id='UU8Cy'><pre id='UU8Cy'><center id='UU8Cy'></center></pre></bdo></b><th id='UU8Cy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UU8Cy'><tfoot id='UU8Cy'></tfoot><dl id='UU8Cy'><fieldset id='UU8Cy'></fieldset></dl></div>
      2. 了解 window.event 屬性及其用法

        Understanding the window.event property and its usage(了解 window.event 屬性及其用法)

          • <tfoot id='qVphU'></tfoot>

              <bdo id='qVphU'></bdo><ul id='qVphU'></ul>

              <small id='qVphU'></small><noframes id='qVphU'>

              <i id='qVphU'><tr id='qVphU'><dt id='qVphU'><q id='qVphU'><span id='qVphU'><b id='qVphU'><form id='qVphU'><ins id='qVphU'></ins><ul id='qVphU'></ul><sub id='qVphU'></sub></form><legend id='qVphU'></legend><bdo id='qVphU'><pre id='qVphU'><center id='qVphU'></center></pre></bdo></b><th id='qVphU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qVphU'><tfoot id='qVphU'></tfoot><dl id='qVphU'><fieldset id='qVphU'></fieldset></dl></div>
                  <tbody id='qVphU'></tbody>

                • <legend id='qVphU'><style id='qVphU'><dir id='qVphU'><q id='qVphU'></q></dir></style></legend>
                  本文介紹了了解 window.event 屬性及其用法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我不明白 window.event 或 window.event.srcElement 背后的動機.在什么情況下應(yīng)該使用它?它在 DOM 中究竟代表什么?

                  I don't understand the motivation behind window.event or window.event.srcElement. In what context should one use this? What exactly does it represent in the DOM?

                  推薦答案

                  這里 w3school 說什么 關(guān)于事件對象:

                  事件是可以被 JavaScript 檢測到的動作,而事件對象提供有關(guān)已發(fā)生事件的信息.

                  Events are actions that can be detected by JavaScript, and the event object gives information about the event that has occurred.

                  有時我們想在事件發(fā)生時執(zhí)行 JavaScript,例如就像用戶點擊按鈕一樣.

                  Sometimes we want to execute a JavaScript when an event occurs, such as when a user clicks a button.

                  您可以使用以下方式處理事件:

                  You can handle events using:

                  node.onclick = function(e) {
                    // here you can handle event. e is an object.
                    // It has some usefull properties like target. e.target refers to node
                  }
                  

                  但是 Internet Explorer 不會將事件傳遞給處理程序.相反,您可以使用 window.event 對象,該對象在事件觸發(fā)后立即更新.那么跨瀏覽器處理事件的方式:

                  However Internet Explorer doesn't pass event to handler. Instead you can use window.event object which is being updated immediately after the event was fired. So the crossbrowser way to handle events:

                  node.onclick = function(e) {
                    e = e || window.event;
                    // also there is no e.target property in IE.
                    // instead IE uses window.event.srcElement
                    var target = e.target || e.srcElement;
                    // Now target refers to node. And you can, for example, modify node:
                    target.style.backgroundColor = '#f00';
                  }
                  

                  這篇關(guān)于了解 window.event 屬性及其用法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數(shù)據(jù)更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態(tài)元素 - Angular 2 amp;離子2)

                      <tbody id='lnBwp'></tbody>
                      <bdo id='lnBwp'></bdo><ul id='lnBwp'></ul>
                          <tfoot id='lnBwp'></tfoot>

                          <legend id='lnBwp'><style id='lnBwp'><dir id='lnBwp'><q id='lnBwp'></q></dir></style></legend>
                          1. <small id='lnBwp'></small><noframes id='lnBwp'>

                            <i id='lnBwp'><tr id='lnBwp'><dt id='lnBwp'><q id='lnBwp'><span id='lnBwp'><b id='lnBwp'><form id='lnBwp'><ins id='lnBwp'></ins><ul id='lnBwp'></ul><sub id='lnBwp'></sub></form><legend id='lnBwp'></legend><bdo id='lnBwp'><pre id='lnBwp'><center id='lnBwp'></center></pre></bdo></b><th id='lnBwp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lnBwp'><tfoot id='lnBwp'></tfoot><dl id='lnBwp'><fieldset id='lnBwp'></fieldset></dl></div>

                          2. 主站蜘蛛池模板: 亚洲一一在线 | 超碰成人免费 | 伊人在线| 国产特级毛片aaaaaa喷潮 | 一区二区三区电影网 | 亚洲一区二区视频 | 欧美一级三级在线观看 | 欧美精品一区二区三区四区五区 | 精品欧美一区二区三区久久久 | 亚洲综合精品 | 亚洲va欧美va天堂v国产综合 | 久久久视频在线 | 亚洲三级在线 | 成人福利在线 | 国产精品爱久久久久久久 | 色婷婷综合久久久久中文一区二区 | 国产欧美视频一区二区三区 | 激情免费视频 | 成人在线一区二区三区 | 欧美精品在线播放 | 国产你懂的在线观看 | 天天草天天射 | 超碰97av| 中文字幕免费中文 | 色爱综合网 | 欧美日韩视频在线 | 国产亚洲精品美女久久久久久久久久 | 国产一区二区a | 久草新在线| 天天干天天插天天 | 国产91久久久久 | 中文字幕亚洲精品 | 毛片99| 在线看91 | 天天干夜夜操 | 亚洲欧美另类在线 | 一区二区三区视频 | 国产精品3区 | 国产精品高清一区二区三区 | 色婷婷综合网 | 成人一区二区三区 |