0.1.0 • Published 3 years ago
ajanuw-browser-platform v0.1.0
ajanuw-browser-platform
检测浏览器类型
example
const { Platform } = BrowserPlatform;
console.log(new Platform());
Platform
class Platform {
isBrowser: boolean;
EDGE: boolean;
TRIDENT: boolean;
BLINK: boolean;
WEBKIT: boolean;
IOS: boolean;
FIREFOX: boolean;
ANDROID: boolean;
SAFARI: boolean;
}
See alse:
- 源码来至
@angular/cdk
0.1.0
3 years ago