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")
            }
        }

 

posted @ 2019-07-29 16:21  碎碎念岁岁恋  阅读(1727)  评论(0编辑  收藏  举报