fixed bug
This commit is contained in:
1 parent
3b8edf8d39
commit
23eab42bd7
21 files changed
+2363
-408
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// 判断是否为移动端
|
||||
window.isMobile = function() {
|
||||
if (window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)) {
|
||||
return true; // 移动端
|
||||
} else {
|
||||
return false; // PC端
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user