We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4973a5d commit c002db2Copy full SHA for c002db2
src/fullScreen.ts
@@ -0,0 +1,8 @@
1
+export function fullScreen() {
2
+ const el: any = document.documentElement;
3
+ const rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen;
4
+ if (rfs)
5
+ rfs.call(el);
6
+ else
7
+ alert("浏览器不支持全屏");
8
+}
0 commit comments