第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

VUE 同時(shí)監(jiān)聽 多個(gè)事件,safari瀏覽器上異常

VUE 同時(shí)監(jiān)聽 多個(gè)事件,safari瀏覽器上異常

BIG陽 2019-02-26 17:12:57
safari瀏覽器上,觸發(fā) contextmenu右鍵 同時(shí) 會(huì)觸發(fā) click事件google瀏覽器 觸發(fā) contextmenu右鍵 同時(shí) 不會(huì)觸發(fā) click事件li 上 同時(shí)監(jiān)聽( mouseout mouseover contextmenu on:click)<li @mouseover="overShow(item.tree_id,this)" @mouseout="outHide(item.tree_id,this)" @contextmenu.prevent.stop="open_menu($index,item.tree_id,item.path,true,$event)" v-for="(item,$index) in tree_list" :class="[{'active':item.tree_id === tree_list[0].active},{'open':item.open},{'hover': item.tree_id === tree_list[0].hover && item.tree_id != tree_list[0].active},{'changed' : item.changed}]"v-on:click.stop="select_tree(item.tree_id,item.path)" v-on:keyup.right.stop="show_menu">    <div class="wholerow"></div><i class="icon" :class="[{'fa fa-caret-right'  : item.child.length > 0 && !item.open},{'fa fa-caret-down'  : item.child.length > 0 && item.open}]" v-on:click.stop="child_open($index,this)"></i> <a class="text">                                    {{item.name}}                                </a>
查看完整描述

1 回答

?
暮色呼如

TA貢獻(xiàn)1853條經(jīng)驗(yàn) 獲得超9個(gè)贊

首先:safe瀏覽器上是指safari瀏覽器嗎?

我做了在線例子,表示在safari上并沒有出現(xiàn)右擊會(huì)調(diào)用click的情況 demo

建議你先做一個(gè)簡(jiǎn)單的例子,在試一下。另外事件綁定最好都用@。

<div id="app">

  <button @click="onClick" @contextmenu="onContextmenu">

    click

  </button>

</div>


new Vue({

  el: '#app',

  methods: {

    onClick () {

      console.log('onClick')

    },

    onContextmenu () {

      console.log('onContextmenu')

    }

  }

})


查看完整回答
反對(duì) 回復(fù) 2019-03-02
  • 1 回答
  • 0 關(guān)注
  • 1145 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)