版本需求: 基础库 1.21.0 开始支持,低版本需做 兼容处理。
该 API 用于在插件中获取小程序的 appId。
属性 | 类型 | 说明 |
---|---|---|
appId | String | 使用该插件的小程序 appId |
const appIdRes = my.getParentAppIdSync();
console.log(appIdRes.appId);
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com