以下是织梦dedecms电脑端访问移动端时自动跳转到电脑端代码
<script type="text/j艾薇ascript"> function browserRedirect() { var sUserAgent= n艾薇igator.userAgent.toLowerCase(); var bIsIpad= sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp= sUserAgent.match(/midp/i) == "midp"; var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid= sUserAgent.match(/android/i) == "android"; var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile"; if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) { window.location.href= '{dede:global.cfg_mobile_host/}'; } else { window.location= '{dede:global.cfg_basehost/}'; } } browserRedirect(); </script>
评论于:抖音小红书留微信不屏蔽生成工具
评论于:抖音小红书留微信不屏蔽生成工具