function checkFull(){
var isFull = document.fullscreenEnabled || window.fullScreen || document.webkitIsFullScreen || document.msFullscreenEnabled;
if(isFull === undefined) isFull = false;
return isFull;
}
$(window).resize(function () {
if (!checkFull()) {
console.log("退出全屏");
}
});
网友评论