我尝试绑定 FullScreenChange 事件,但它不起作用。也许我做错了什么?
$(document).bind('webkitfullscreenchange mozfullscreenchange fullscreenchange',function(){
if(document.fullScreen){
console.log('Go to Full Screen mode');
}else{
console.log('Exit Full Screen mode');
}
});