🌺前言
移动端唤起拨号等功能
html
index.html在<head></head>中加入这一段
<meta name="format-detection" content="telephone=yes"/>
js
callPhone () { //创建一个方法
window.location.href = 'sms:10086?body=短信内容'; // 添加内容
window.location.href = 'sms:10086'; // 不添加内容
}
html
<a href="sms:10086">发送短信</a>
<a href="sms:10086?body=短信内容"></a>
<a :href="'mailto:' + numbers">{{ numbers }}</a> //numbers 就是号码
文章最后更新于 2024-08-20 16:35:37
作者:徐徐版权声明:转载请注明文章出处