安卓移动端唤起拨号与邮箱

一 拨号

1,常用

1,<a href="tel:xxxxxx">
    <a :href="'tel:'+mobile">{{mobile}}</a> (vue中动态绑定)
2,window.location.href="tel:xxxxxx"  

  

2、移动web页面自动探测电话号码

<meta name="format-detection" content="telephone=no">

<meta http-equiv="x-rim-auto-match" content="none">

3.使用wtai协议进行拨打电话。

代码如下所示:(本人在vue上效果不佳)

<a href="wtai://wp//mc;XXXX">拨打XXXX</a> 
<a href="wtai://wp/ap;XXXX;">将XXXX存储至电话簿 </a> 
<a href="sms:XXX">发短信到XXX</a> 

二,发邮件

mailto详细介绍:https://www.haorooms.com/post/mailto_link_html

<a href="mailto:[email protected]">Email</a>
<a :href="'mailto:'+email">{{email}}</a> (vue中动态绑定)

  

猜你喜欢

转载自www.cnblogs.com/shichenzi/p/11905522.html