• <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

        时间:2023-11-29

      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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Rails 中的 HTML 标题属性仅显示第一个单词 下一篇:设置 a:hover 基于类

                  相关文章

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

                  <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>