Regarding the problem of using getUserProfile to obtain user information in the WeChat applet: TypeError: wx.getUserProfile is not a function

1. Preface
Today, after successfully using wx.getUserProfile to obtain user information in the test project, the code was migrated to the development project and the following problems were discovered. 2. The
Insert image description here
solution is
in the details in the lower right corner. Set the version to a newer version. The poster tested 2.16 Both .1 and 2.17.0 are
Insert image description here
available. This is recorded so that novices can search and find this error in time.

Guess you like

Origin blog.csdn.net/ahLOG/article/details/116531943