vue阻止右键默认行为

<!--不阻止右键菜单(浏览器行为),右键执行函数show-->
<input type="button" value="按钮" @contextmenu="show()"> 
<!--阻止右键菜单-->
<input type="button" value="按钮1" @contextmenu.prevent>
<!--阻止右键菜单(浏览器行为),右键执行函数show-->
<input type="button" value="按钮1" @contextmenu.prevent="show1()">

相关文章: