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

    1. <legend id='mWWm8'><style id='mWWm8'><dir id='mWWm8'><q id='mWWm8'></q></dir></style></legend>

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

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

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

        鼠标悬停或悬停 vue.js

        Mouseover or hover vue.js(鼠标悬停或悬停 vue.js)

      1. <small id='3Tyq4'></small><noframes id='3Tyq4'>

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

                <tfoot id='3Tyq4'></tfoot>

                  <legend id='3Tyq4'><style id='3Tyq4'><dir id='3Tyq4'><q id='3Tyq4'></q></dir></style></legend>
                    <tbody id='3Tyq4'></tbody>
                  本文介绍了鼠标悬停或悬停 vue.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在 vue.js 中将鼠标悬停在一个元素上时显示一个 div.但我似乎无法让它工作.

                  I would like to show a div when hovering over an element in vue.js. But I can't seem to get it working.

                  vue.js 中的 hovermouseover 似乎没有事件.这是真的吗?

                  It looks like there is no event for hover or mouseover in vue.js. Is this really true?

                  可以结合jquery hover和vue方法吗?

                  Would it be possible to combine jquery hover and vue methods?

                  推荐答案

                  这里不需要方法.

                  HTML

                  <div v-if="active">
                      <h2>Hello World!</h2>
                   </div>
                  
                   <div v-on:mouseover="active = !active">
                      <h1>Hover me!</h1>
                   </div>
                  

                  JS

                  new Vue({
                    el: 'body',
                    data: {
                      active: false
                    }
                  })
                  

                  这篇关于鼠标悬停或悬停 vue.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Move link image 5px up on hover(悬停时将链接图像向上移动 5px)
                  How do I inspect CSS pseudo classes with firebug?(如何使用 firebug 检查 CSS 伪类?)
                  Why doesn#39;t CSS hover work on table rows when the cells inside the rows have class names?(当行内的单元格具有类名时,为什么 CSS 悬停在表格行上不起作用?)
                  How to apply a CSS class on hover to dynamically generated submit buttons?(如何在悬停时将 CSS 类应用于动态生成的提交按钮?)
                  Differences between CSS3 :hover and :focus?(CSS3 :hover 和 :focus 的区别?)
                  div hover background-color change?(div 悬停背景颜色变化?)

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

                    <tbody id='JxzR7'></tbody>
                  <legend id='JxzR7'><style id='JxzR7'><dir id='JxzR7'><q id='JxzR7'></q></dir></style></legend>
                      <bdo id='JxzR7'></bdo><ul id='JxzR7'></ul>

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