1.拨打电话
<a href="tel:13800013088">13800013088</a>
2.唤起QQ
<a href="tencent://message/?Menu=yes&uin=1248106922" target="_blank" class="fixed-qq" data-type="qq"></a>
3.调用js方法
<a href="javascript:alert('hello world')" >点击</a>
<a href="javascript:clickEvent()" >点击</a>
function clickEvent() {
console.log(111);
}
4.禁用a标签的默认事件
<a href="javascript:;" >点击</a>
<a href="javascript:void(0);" >点击</a>
5.跳到指定的页面
<a href="http://www.baidu.com" >百度url</a>
<a href="./index.html" >相对路径</a>
6.跳到页面指定位置——锚点
<a href="#user">跳到页面中id为user的位置</a>
<a href="#">跳到顶部</a>
7.打开邮箱
<a href="mailto:123456789@qq.com">发邮件</a>
8.发短信
<a href="sms:10086">给 10086 发短信</a>
9.下载文件
<a href="./demo.pdf">下载文件</a>