js禁止右键

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