1.一键拨号:
<a href="tel:18511178920">拨打18511178920</a>
2.移动web页面自动探测电话号码:
<meta name="format-detection" content="telephone=yes">
3.使用wtai协议进行拨打电话:
<a href="wtai://wp//mc;18511178920">拨打守望者</a>
<a href="wtai://wp/ap;18511178920;">将守望者存储至电话簿 </a>
在电话号码前加上 + (加号)表示国际号码,比如:
<a href="wtai://wp/mc;+12345678">+12345678</a>
4.短信:
如果是需要调用短信的接口,可以将链接写成下面的格式:sms:<phone_number>[,<phone-number>]*[?body=<message_body>],例如:
<a href="sms:12345678">给12345678发短信</a>
<a href="sms:12345678?body=hello">给12345678发送内容为"hello"的短信</a>
<a href="sms:12345678,98765432?body=hello">给12345678和98765432发送内容为"hello"的短信</a>
5.Android Market:
如果希望一个链接能够激活Android市场的功能,可以把链接写成:
<a href="market://search?q=[query]">Android Market link</a>
其中<query>就是搜索的内容,你应用的名称例子:
<a href="market://search?q=MyApp">MyApp</a>
6.Ovi Store:诺基亚Nokia的一个应用市场。
<a href="http://store.ovi.com/content/XXXXX">MyApp</a>
XXXX就是你的应用的ID(application Id)。
7.Windows Marketplace:微软的应用市场
<a href="http://marketplace.windowsphone.com/details.aspx?appId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">MyApp</a>
其中 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 只的就是应用的ID
8.地图定位GPS:
<a href="geopoint:[经度],[纬度]">我的位置</a>
例如:
<a href="geopoint:100,23">我的位置</a>
9.邮件:
邮件就和普通的html一样使用mailto:
<a href="mailto:nobody@wordpress.com"></a>
<a href="mailto:nobody@wordpress.com,no.one@wordpress.com"></a>
<a href="mailto:nobody@wordpress.com?subject=Testing"></a>
<a href="mailto:nobody@wordpress.com?subject=Testing mailto&cc=no.one@wrodpress.com"></a>
转载至: http://www.w3cfuns.com/article-5599630-1-1.html