微信小程序獲取openid(用戶惟一身份識別)

1.首先在js文件中定義存儲appid,secret對象web 2.在onLoad生命週期函數裏面獲取openidapi /** * 生命週期函數--監聽頁面加載 */ onLoad: function (options) { var that = this var user = wx.getStorageSync('user') || {};
相關文章
相關標籤/搜索