移动浏览器会自动将符合格式的文本识别为号码邮箱
我们可以通过以下代码来禁用这个功能
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="format-detection" content="telephone=no,email=no">
</head>
如果我们又想把单个文本设置为号码或邮箱,可以将其设置为<a>标签
<body>
<a href="tel:110">10086</a>
<a href="mailto:[email protected]">[email protected]</a>
</body>