一、发邮箱
<a href="mailto:[email protected]" style="color: inherit; text-decoration: none">[email protected]</a>
二、打电话
<a href="tel:18501981333"></a>
三、下载
但是有个情况,比如txt,png,jpg等这些浏览器支持直接打开的文件是不会执行下载任务的,而是会直接打开文件,这个时候就需要给a标签添加一个属性“download”;
<a href="/user/test/xxxx.txt" download="文件名.txt">点击下载</a>