久久久久久久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 屬性及其用法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我不明白 window.event 或 window.event.srcElement 背后的動機.在什么情況下應該使用它?它在 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 說什么 關于事件對象:

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

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

                  有時我們想在事件發生時執行 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 對象,該對象在事件觸發后立即更新.那么跨瀏覽器處理事件的方式:

                  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';
                  }
                  

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

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

                  相關文檔推薦

                  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 - 使用異步數據更新 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 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - 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. 主站蜘蛛池模板: 亚洲精品2区 | 在线看91| 99在线视频观看 | 亚洲欧洲在线观看视频 | 精品少妇一区二区三区在线播放 | 亚洲欧美第一视频 | 澳门永久av免费网站 | 国产9久| 操人网站| 狠狠撸在线视频 | 欧美视频日韩 | 国产99久久精品一区二区永久免费 | 欧美成人精品二区三区99精品 | 日韩中文字幕视频 | 五月激情综合网 | 一区二区三区国产精品 | 一区二区三区四区在线 | 午夜视频在线 | 日韩久久精品电影 | 国产精品久久久久久一区二区三区 | 中文亚洲视频 | www操操 | 日本三级电影在线看 | 91久久久久久久久 | 久久国内精品 | 在线色网址| 欧美一级片在线观看 | 精品综合久久久 | 97精品视频在线 | 国产1区2区3区| 香蕉久久a毛片 | 日本a∨精品中文字幕在线 亚洲91视频 | 国产一区二区 | 久久av在线播放 | 欧美日韩综合精品 | 精品亚洲一区二区三区 | 国产成人亚洲精品自产在线 | 亚洲一区二区三区四区五区中文 | 欧美一级全黄 | 欧美精品一区二区三区四区五区 | 天天操天天玩 |