判断浏览器的 ua ,如果是移动端,链接跳转至子目录
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
if (navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)) { | |
location.href = 'm/index.html#type' | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment