微信小程序里面手机号授权调用显示不是一个函数

问题遇到的现象和发生背景

https://blog.csdn.net/cheng2290/article/details/102550829就是看到以前也用过这个方法导致报错that.getcode is not a function

问题相关代码,请勿粘贴截图

that.getcode is not a function调用不是一个函数

运行结果及报错内容

that.getcode is not a function

我的解答思路和尝试过的方法

不晓得

我想要达到的结果

想问一下怎么解决的?

手机授权用这个

<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>