wx.getUserProfile 到底能不能用了还 cnmd?
发布于 5 年前 作者 wyang 11835 次浏览 来自 问答

基础库版本 2.15.0 开发者工具1.05.2104251

console.log('canIUse', wx.canIUse('wx.getUserProfile')) // canIUse false

???

5 回复

wx.canIUse(‘getUserProfile’)

thx

一直能用啊。 你看官方示例代码。再看看你的。判断的写法不一样的

乖乖用文档给出的if(wx.getUserProfile)判断,不如你会吃亏



用if(wx.getUserProfile)判断

回到顶部