使用wx.makePhoneCall报错:makePhoneCall:fail parameter error: parameter.phoneNumber should be String inst

在我们使用微信API,wx.makePhoneCall来使用电话拨号时,会显示如下报错
使用wx.makePhoneCall报错:makePhoneCall:fail parameter error: parameter.phoneNumber should be String inst
我们在phoneNumber中使用的确实是字符串,可是仍然提示我们号码未定义,这个时候我们只需要在phoneNumber后面加上 +‘’就可以,将其转化为字符串,如图:
使用wx.makePhoneCall报错:makePhoneCall:fail parameter error: parameter.phoneNumber should be String inst
/原创不易,若要引用请标明出处