百度移动来路跳转js代码
- <script>
- function isMobile() {
- const userAgent = navigator.userAgent || navigator.vendor || window.opera;
- return /android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent.toLowerCase());
- }
- if (isMobile()) {
- window.location.href = "https://app.gualaoshi.cc";
- } else {
- }
- </script>
复制代码
|