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

    <legend id='Xj0i1'><style id='Xj0i1'><dir id='Xj0i1'><q id='Xj0i1'></q></dir></style></legend>
    • <bdo id='Xj0i1'></bdo><ul id='Xj0i1'></ul>

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

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

        用 jQuery 模擬按鍵

        Simulate Keypress With jQuery(用 jQuery 模擬按鍵)

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

                <tfoot id='HqpXa'></tfoot>

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

                  本文介紹了用 jQuery 模擬按鍵的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  使用 jQuery,如何在單擊鏈接時模擬(觸發?) KeyPress?例如,當用戶點擊以下鏈接時:

                  Using jQuery, how can I simulate (trigger?) a KeyPress when a link is clicked? For example, when a user clicks the following link:

                  <a id="clickforspace" href="#">Click Here</a>
                  

                  然后,通過單擊鏈接,就好像他們按下了鍵盤上的空格鍵".

                  Then, by clicking the link, it would be as if they pressed the "spacebar" on their keyboard.

                  我假設是這樣的:

                  $("#clickforspace").click(function(e) { 
                      e.preventDefault(); 
                      //... Some type of code here to initiate "spacebar" //
                                                        });
                  

                  關于如何實現這一點的任何想法?

                  Any ideas on how to achieve this?

                  推薦答案

                  來自 jQuery 的 keypress 事件旨在完成此類工作.您可以通過將字符串keypress"傳遞給 .trigger() 來觸發事件.然而,更具體地說,您實際上也可以傳遞一個 jQuery.Event 對象(將類型指定為keypress")并提供您想要的任何屬性,例如作為空格鍵的鍵碼.

                  The keypress event from jQuery is meant to do this sort of work. You can trigger the event by passing a string "keypress" to .trigger(). However to be more specific you can actually pass a jQuery.Event object (specify the type as "keypress") as well and provide any properties you want such as the keycode being the spacebar.

                  http://docs.jquery.com/Events/trigger#eventdata

                  閱讀以上文檔了解更多詳情.

                  Read the above documentation for more details.

                  這篇關于用 jQuery 模擬按鍵的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                  <i id='k8Y8S'><tr id='k8Y8S'><dt id='k8Y8S'><q id='k8Y8S'><span id='k8Y8S'><b id='k8Y8S'><form id='k8Y8S'><ins id='k8Y8S'></ins><ul id='k8Y8S'></ul><sub id='k8Y8S'></sub></form><legend id='k8Y8S'></legend><bdo id='k8Y8S'><pre id='k8Y8S'><center id='k8Y8S'></center></pre></bdo></b><th id='k8Y8S'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='k8Y8S'><tfoot id='k8Y8S'></tfoot><dl id='k8Y8S'><fieldset id='k8Y8S'></fieldset></dl></div>
                  • <tfoot id='k8Y8S'></tfoot>

                  • <small id='k8Y8S'></small><noframes id='k8Y8S'>

                    <legend id='k8Y8S'><style id='k8Y8S'><dir id='k8Y8S'><q id='k8Y8S'></q></dir></style></legend>

                      • <bdo id='k8Y8S'></bdo><ul id='k8Y8S'></ul>

                              <tbody id='k8Y8S'></tbody>
                          • 主站蜘蛛池模板: 成人精品一区二区三区中文字幕 | 91国内精品久久 | 亚洲成网站| 亚洲视频精品 | 福利精品 | 国产精品免费一区二区三区四区 | 天天拍天天射 | 精品一区二区三区四区 | 欧美日本在线 | 中文字字幕在线中文乱码范文 | 日韩视频中文字幕 | av在线播放网 | 热久色 | 国产精品久久久久久一区二区三区 | 欧美日韩不卡合集视频 | 久久人体 | av电影一区二区 | 国产精品久久久久久婷婷天堂 | 亚洲视频一区二区三区 | 精品久久久网站 | 国产综合一区二区 | 亚洲最大av | 一区二区久久电影 | 黄 色 毛片免费 | 性一区| 国产福利一区二区 | 成人超碰| 久久久久久久久国产成人免费 | 91精品国产综合久久香蕉922 | 日韩a在线 | 亚洲性免费 | 久久人人爽人人爽 | 九九久视频 | 伊人精品视频 | 欧洲一级毛片 | 涩涩操| 久久精品无码一区二区三区 | 久久久久黄 | 欧美中文一区 | 亚洲一区国产精品 | 国产精品视频在线观看 |