window.addEventListener('contextmenu', function(e){ e.preventDefault(); }); 转载于:https://www.cnblogs.com/zFelix/p/8287183.html