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

Environment.deviceId

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

功能说明

这是正在使用的设备的唯一标识符。可用于按设备保存设置、分析日志、区分同一用户的多台设备。

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

类型

Environment.deviceId: string;

Params

Response

是字符串。

示例代码

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

console.log(Environment.deviceId);

这有帮助吗?