小程序-获取openid
console.log(res.code) //这就是code wx.request({ url: 'https://zjite.applinzi.com?code='.res.code, method: "GET", header: { 'content-type': 'application/json' }, success: function (res) { openid = res.data.openid //返回openid console.log('openid') //这就是code } })
今日事今日毕