文件名称:fullscreen.js:简单的浏览器全屏库,与常见的主浏览器兼容
文件大小:8KB
文件格式:ZIP
更新时间:2024-06-01 11:04:12
browser fullscreen JavaScript
fullscreen.js 简单的浏览器全屏库,与常见的主流浏览器兼容 演示版 安装 npm install fullscreen . js -- save // or < script src = './fullscreen.min.js' > < / script > 用法 import fullscreen from 'fullscreen.js' ; // or // var fullscreen = require('fullscreen.js'); fullscreen . request ( ) ; 原料药 fullscreen.is() :是否为全屏状态 fullscreen.enabled() :是否支持全屏模式 fullscreen.listen(callback) :添加全屏事件监听器 fullscreen . listen ( function ( ) {
【文件预览】:
fullscreen.js-master
----.gitignore(57B)
----.babelrc(46B)
----package.json(1KB)
----src()
--------fullscreen.js(2KB)
----build()
--------webpack.build-demo.conf.js(801B)
--------webpack.base.conf.js(257B)
--------webpack.build.conf.js(666B)
--------webpack.dev.conf.js(594B)
----dist()
--------fullscreen.min.js(2KB)
----examples()
--------main.js(1KB)
--------index.html(1KB)
----README.md(766B)