Skip to content

操作系统相关函数

typescript
/**
 * @description getOS 获取当前操作系统类型
 * @returns {string}
 * @example
 * getOS(); // Android | IOS | Windows | Mac | Linux | Unknown   Unknown为未知操作系统
 */
typescript
/**
 * @description 获取设当前备类型
 * @returns {string}
 * @example
 * getDevice(); // Mobile | Tablet | PC | Unknown   Unknown为未知设备类型
 */

在MIT许可下发布    备案号: 晋ICP备2024051569号-1