jquery一招禁用html页面所有操作

 document.onclick = function(event) {
            if (GetCookie('sfqzgj') == "true") {
                $('html').css("pointer-events", "none")
            }
        } 
        document.onmousemove = function(event) {
            if (GetCookie('sfqzgj') == "true") {
                $('html').css("pointer-events", "none")
            }
        }
原文地址:https://www.cnblogs.com/wuchaofan1993/p/11264566.html