var targetElement = document.documentElement;
var onFullScreenCallback = function(){cc.log("true")};
if(!cc.screen.fullScreen()){ //判断是否是全屏
cc.screen.requestFullScreen(targetElement,onFullScreenCallback);
}else{
cc.screen.exitFullScreen();
}
点击按钮桌面全屏功能
最新推荐文章于 2024-05-30 22:28:39 发布