收藏
回答

wx.getUserProfile is not a function 怎么回事?

回答关注问题邀请回答
收藏

2 个回答

  • 安逸
    安逸
    2021-07-05

    基础库版本不支持,所以会提示不存在。

    2021-07-05
    有用
    回复
  • 天之骄子
    天之骄子
    2021-07-04

    已经解决!

    在onLoad里少了下面的判断
    


    onLoad() {
    var that=this;//这里做了声明
        if (wx.getUserProfile) {
          that.setData({//这里也必须用that 我错误的使用了this
            canIUseGetUserProfile: true
          })
        }
      },
    


    2021-07-04
    有用
    回复
登录 后发表内容