zizhan77

1.直接a标签拨打电话

<a href="tel:110">点击拨打110</a>

2.也可以windows.href跳转

window.location.href = "tel://110"

3.uni-app框架里有封装好的方法
uni.makePhoneCall({phoneNumber: \'110\' }
 
4.reactNative中也有通用的接口来实现拨打电话的功能
  let phone = "110"
  Linking.canOpenURL(phone).then( res =>{
    if(res){
      return Linking.openURL(url);
    }
  }
啊啊啊啊啊摸鱼好爽

分类:

技术点:

相关文章:

  • 2021-05-22
  • 2022-12-23
  • 2022-01-13
  • 2021-12-31
  • 2022-01-17
  • 2022-01-29
  • 2022-01-14
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-02-07
  • 2021-08-14
相关资源
相似解决方案