用于宿主应用(如:淘宝)的基础信息;
字段 |
类型 |
描述 |
appId |
string |
小游戏/小程序 ID |
version |
string |
淘宝客户端版本号 |
theme |
string |
系统主题,取值:light、dark |
appName |
string |
UNKNOWN 、TB(淘宝)、ELMC(饿了么)、LTAO(淘特) |
// 异步调用方式 const listener = function (res) { console.log(res) } my.getAppBaseInfo(listener); // 同步调用方式 const ret = my.getAppBaseInfoSync();