微信小程序第三方平台开发,怎么获取ext.json里的extAppid?

发布于 4 年前作者 qiang624587 次浏览最后编辑 4 年前来自 issues

微信小程序第三方平台开发,怎么在小程序里面获取ext.json里的extAppid?

1 回复
xiulantan
xiulantan1 楼14 天前

1、写在ext:{appid:‘xxx’}里;

2、小程序里直接获取本小程序的appid

let appid = wx.getAccountInfoSync().miniProgram.appId