<a href="tel:123456">打電話</a>
window.location.href = "tel:123456"
<a href="sms:123456">發短信</a>
window.location.href = "sms:123456"
<a href="mailto:[email protected]">發送郵件</a>
window.location.href = "mailto:[email protected]"
//短信帶內容
<a href="sms:123456&body=短信內容">iOS</a>
<a href="sms:123456?body=短信內容">Android</a>
//判斷設備
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);