For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device.os

函数式 API getPlatformOS也可以通过它使用相同的功能。

功能说明

当前正在运行的平台信息。 'ios''android' 其中之一。

是常量值,可直接读取,无需调用。

类型

Device.os: "ios" | "android";

Params

Response

'ios''android'

示例代码

import { Device } from "@apps-in-toss/web-framework";

console.log(Device.os);

这有帮助吗?