js禁止网页使用右键

document.oncontextmenu=function(){ return false }
原文地址:https://www.cnblogs.com/woodk/p/4595637.html