Skip to content

Instantly share code, notes, and snippets.

@ryanlid
Created September 12, 2016 16:34
Embed
What would you like to do?
判断浏览器的 ua ,如果是移动端,链接跳转至子目录
(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