We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33ac010 commit 14d8aedCopy full SHA for 14d8aed
isMobileUserAgent.js
@@ -0,0 +1,8 @@
1
+/**
2
+ * @description 判断是否是移动设备访问
3
+ * @author 未知
4
+ */
5
+
6
+function isMobileUserAgent(){
7
+ return (/iphone|ipod|android.*mobile|windows.*phone|blackberry.*mobile/i.test(window.navigator.userAgent.toLowerCase()));
8
+}
0 commit comments