devtools-detect:检测DevTools是否打开及其方向

时间:2021-04-30 06:01:14
【文件属性】:
文件名称:devtools-detect:检测DevTools是否打开及其方向
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-30 06:01:14
HTML 开发工具检测 检测DevTools是否打开及其方向 当您需要在打开DevTools时发生一些特别的事情时很有用。 如暂停画布,添加样式调试信息等。 安装 $ npm install devtools-detect 用法 < script src =" node_modules/devtools-detect/index.js " > </ script > < script type =" module " > // Check if it's open console . log ( 'Is DevTools open:' , window . devtools . isOpen ) ; // Check it's orientation, `undefined` if not open console . log ( 'DevTools orientation:' , wind
【文件预览】:
devtools-detect-main
----.gitignore(23B)
----package.json(667B)
----.npmrc(19B)
----index.js(1KB)
----.github()
--------workflows()
--------funding.yml(113B)
----license(1KB)
----index.html(3KB)
----readme.md(1KB)
----index.test-d.ts(421B)
----.gitattributes(19B)
----.editorconfig(175B)
----index.d.ts(657B)

网友评论