Skip to content

電話

makePhoneCall

TIP

該API使用方法為: wx.makePhoneCall(Object object)

  • 功能說明: 撥打電話

  • 參數及說明: Object object。

    内容類型預設值必填說明
    phoneNumberstring-需要撥打的電話
    successFunction-接口調用成功的回呼函數
    failFunction-接口調用失敗的回呼函數
    completeFunction-接口調用結束的回呼函數(無論成功與否都執行)
  • 示例代碼:

js
wx.makePhoneCall({
  phoneNumber: '1340000' // This is merely an example and not an actual phone number.
})