cordova 实现拨打电话:

  第一步配置conf.xml
在cordova中所有的URL Schemes 都是服从于白名单的,所以a tel 在这无法正常使用。解决方法是在项目config.xml中添加
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="market:*" />
<access origin="tel:*" launch-external="yes"/>

第二步:

<a href="tel:1835494870"> 拨打电话</a>

Ok 了
结束。。。。。。。。。。。。。。。。。。。

最新文章

  1. 计数排序(counting-sort)&mdash;&mdash;算法导论(9)
  2. 一步步搭建react-native环境(苹果OS X)
  3. 持续集成(Continuous integration)
  4. css width height
  5. Python——面向对象
  6. 20145218 《Java程序设计》第9周学习总结
  7. Html与CSS布局技巧
  8. jQuery慢慢啃之属性(三)
  9. C语言复合梯形公式实现定积分
  10. Android应用启动还有一个应用
  11. 编辑控件CKEditor和CKFinder
  12. Maven项目问题
  13. 学号:201521123116 《java程序设计》第二周学习总结
  14. Tomcat就是这么简单
  15. ES ik分词器使用技巧
  16. Team
  17. mysql学习笔记五 —— MHA
  18. React/anu实现Touchable
  19. Lingoes 一款功能强大、简明易用的多语言词典和文本翻译软件
  20. JavaScript 分号使用总结

热门文章

  1. AbstractFactory
  2. ArcGIS 开发时,解决__类型“XX”同时存在于“”和“”中__的错误
  3. css 让两个div重叠
  4. django admin页面样式丢失问题
  5. 谷歌浏览器插件-html页面js事件查看器
  6. linux 内核(系统)、函数的理解、宏的程序调试
  7. 15:取近似值ApproximateValue
  8. Windows 10正式版历代记:Version 1709、Build 16299都是什么鬼?
  9. SpringMvc自动代理
  10. HTML中Select的使用详解