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

      1. <tfoot id='Wnvdw'></tfoot>

      2. <i id='Wnvdw'><tr id='Wnvdw'><dt id='Wnvdw'><q id='Wnvdw'><span id='Wnvdw'><b id='Wnvdw'><form id='Wnvdw'><ins id='Wnvdw'></ins><ul id='Wnvdw'></ul><sub id='Wnvdw'></sub></form><legend id='Wnvdw'></legend><bdo id='Wnvdw'><pre id='Wnvdw'><center id='Wnvdw'></center></pre></bdo></b><th id='Wnvdw'></th></span></q></dt></tr></i><div id='Wnvdw'><tfoot id='Wnvdw'></tfoot><dl id='Wnvdw'><fieldset id='Wnvdw'></fieldset></dl></div>
        <legend id='Wnvdw'><style id='Wnvdw'><dir id='Wnvdw'><q id='Wnvdw'></q></dir></style></legend>
          <bdo id='Wnvdw'></bdo><ul id='Wnvdw'></ul>

        使用 JavaScript 事件模拟悬停

        Simulate hover using JavaScript events(使用 JavaScript 事件模拟悬停)

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

            <tfoot id='oaVMW'></tfoot>

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

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

                • <legend id='oaVMW'><style id='oaVMW'><dir id='oaVMW'><q id='oaVMW'></q></dir></style></legend>
                  本文介绍了使用 JavaScript 事件模拟悬停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以使用 JavaScript 事件模拟悬停?我尝试在目标元素上注入鼠标悬停事件,但没有运气.

                  Is it possible to simulate hover using JavaScript Events? I tried injecting mouseover event on the target element but no luck.

                  例如,如果有一个带有悬停选择器的链接,是否可以使用 JavaScript 事件悬停"它?基本上,我想触发 CSS 悬停.你可以假设我不能使用 jQuery.

                  For example, if there is a link that has a hover selector, is it possible to "hover" over it using JavaScript Events? Basically, I want to trigger CSS hover. You can assume I can't use jQuery.

                  推荐答案

                  jQuery hover 事件只是使用了 mouseentermouseleave 事件.这是jQuery的悬停来源:

                  The jQuery hover event is just using mouseenter and mouseleave events. Here is the source of jQuery's hover:

                  function (fnOver, fnOut) {
                      return this.mouseenter(fnOver).mouseleave(fnOut || fnOver);
                  }
                  

                  这篇关于使用 JavaScript 事件模拟悬停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)
                    <legend id='AysCW'><style id='AysCW'><dir id='AysCW'><q id='AysCW'></q></dir></style></legend>

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

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

                            <tfoot id='AysCW'></tfoot>

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