微信小程序component子组件中this是个undefined
//调用aaaa() aaaa() { let that = this //console.log(this),结果是个undefined wx.getConnectedWifi({ success(res) { const wifi = res.wifi that.setData({ SSID: wifi.SSID }) }, fail(err) {console.log(err~~~~)} }) },
待解决
悬赏分:10
- 离问题结束还有 215天1小时53分49秒
点赞 0反对 0举报 0
收藏 0
分享 0
