函数式 API getDeviceId也可以通过它使用相同的功能。GitBook Assistant
函数式 API getDeviceId也可以通过它使用相同的功能。
getDeviceId
这是正在使用的设备的唯一标识符。可用于按设备保存设置、分析日志、区分同一用户的多台设备。
是常量值,可直接读取,无需调用。
Environment.deviceId: string;
Params
无
Response
是字符串。
import { Environment } from "@apps-in-toss/web-framework"; console.log(Environment.deviceId);
这有帮助吗?