May 19, 2021 WeChat Mini Program Development Document
OBJECT parameter description:
Parameters | Type | Required | Description |
---|---|---|---|
phoneNumber | String | Is | The phone number you need to dial |
success | Function | Whether | The interface calls a successful callback |
fail | Function | Whether | The interface calls the failed callback function |
complete | Function | Whether | Callback function at end of interface call (call succeeds, fails are executed) |
Example code:
wx.makePhoneCall({
phoneNumber: '1340000' //仅为示例,并非真实的电话号码
})