<!--不阻止右键菜单(浏览器行为),右键执行函数show--> <input type="button" value="按钮" @contextmenu="show()"> <!--阻止右键菜单--> <input type="button" value="按钮1" @contextmenu.prevent> <!--阻止右键菜单(浏览器行为),右键执行函数show--> <input type="button" value="按钮1" @contextmenu.prevent="show1()">
Vue项目中阻止右键默认行为
如果觉得文章有帮助到你,可以扫描以下二维码
请本文作者 喝一杯

