首页 新闻 会员 周边

#写了一个按钮的mouseenter mouseleveve事件(vue div显示与否),在鼠标处于按钮某个位置时div不停闪烁,

0
[已解决问题] 解决于 2019-09-19 18:06
   <i class="el-icon-refresh" @mouseenter="showTip(true)" @mouseleave="showTip(false)"></i>
    <span class="tip" v-if="istip">切换地图模式</span>
   showTip: function(s) {
      var me = this
      if (s) {
        // var t = setInterval(function() {
        me.istip = true
        // }, 100)
      } else {
        // clearInterval(t)
        // debugger;
        me.istip = false
      }
    },
wwj007的主页 wwj007 | 菜鸟二级 | 园豆:245
提问于:2019-09-19 18:03
< >
分享
最佳答案
0
 <i class="el-icon-refresh" @mouseenter="showTip(true)" @mouseleave="showTip(false)"></i>
    <span class="tip" v-if="istip" @mouseenter="showTip(true)" @mouseleave="showTip(false)">切换地图模式</span>
wwj007 | 菜鸟二级 |园豆:245 | 2019-09-19 18:05
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册