【文件属性】:
文件名称:prevent-orientation:在移动设备上禁止定位模式
文件大小:740KB
文件格式:ZIP
更新时间:2021-04-04 19:19:07
mobile portrait landscape orientation TypeScript
预防导向
在移动设备上禁止定位模式
安装
$ yarn add prevent-orientation
或者
< script src =" //unpkg.com/prevent-orientation " > </ script >
用法
import { PreventOrientation } from 'prevent-orientation' ;
// Prevent to portrait orientation
new PreventOrientation ( ) . preventPortrait ( ) ;
// Prevent to landscape orientation
new PreventOrientation ( ) . preventLandscape ( ) ;
定制
new PreventOrientation ( {
text : 'Sorr
【文件预览】:
prevent-orientation-master
----screenshots.png(802KB)
----package.json(667B)
----LICENCE(1KB)
----tsconfig.json(263B)
----.gitignore(108B)
----README.md(1019B)
----yarn.lock(348B)
----index.ts(2KB)