javascript - Mobile phone number on h5 is not recognized by default
高洛峰2017-06-24 09:43:23
0
3
1012
I checked information on the Internet and said that mobile browsers support mobile phone number recognition by default, but the mobile phone number is not recognized on my h5 interface. What should I do?
Only WeChat will automatically recognize it. It seems that ordinary browsers still need to write code, such as
<meta name="format-detection" content="telephone=no">Did you write this? , it will be recognized by default if you don’t add this
JS regular matching is in the mobile phone number format. If so, add the tel attribute