cordova 实现拨打电话-只需两步(H5)
2024-08-25 11:39:48
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 了
结束。。。。。。。。。。。。。。。。。。。
最新文章
- 计数排序(counting-sort)&mdash;&mdash;算法导论(9)
- 一步步搭建react-native环境(苹果OS X)
- 持续集成(Continuous integration)
- css width height
- Python——面向对象
- 20145218 《Java程序设计》第9周学习总结
- Html与CSS布局技巧
- jQuery慢慢啃之属性(三)
- C语言复合梯形公式实现定积分
- Android应用启动还有一个应用
- 编辑控件CKEditor和CKFinder
- Maven项目问题
- 学号:201521123116 《java程序设计》第二周学习总结
- Tomcat就是这么简单
- ES ik分词器使用技巧
- Team
- mysql学习笔记五 —— MHA
- React/anu实现Touchable
- Lingoes 一款功能强大、简明易用的多语言词典和文本翻译软件
- JavaScript 分号使用总结
热门文章
- AbstractFactory
- ArcGIS 开发时,解决__类型“XX”同时存在于“”和“”中__的错误
- css 让两个div重叠
- django admin页面样式丢失问题
- 谷歌浏览器插件-html页面js事件查看器
- linux 内核(系统)、函数的理解、宏的程序调试
- 15:取近似值ApproximateValue
- Windows 10正式版历代记:Version 1709、Build 16299都是什么鬼?
- SpringMvc自动代理
- HTML中Select的使用详解