点击进入全屏事件

//点击进入全屏事件
this.launchFullscreen(document.documentElement);

launchFullscreen(element){
	if(element.requestFullscreen) {
		element.requestFullscreen();
	} else if(element.mozRequestFullScreen) {
		element.mozRequestFullScreen();
	} else if(element.webkitRequestFullscreen) {
		element.webkitRequestFullscreen();
	} else if(element.msRequestFullscreen) {
		element.msRequestFullscreen();
	}
},

你可能感兴趣的:(javascript,javascript)