获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
外部的head和success里的head不是同一个,我要怎么给外部的head赋值
success返回值怎么给外部变量赋值function Info(uid) { var that = this; var head; wx.request({ url: '', data: { }, header: { 'content-type': 'application/json' }, success(res) { that.head = res.data.head; console.log(that.head); } }) console.log(that.head) return that.head; } module.exports.Info = Info;
2018-09-29