帝国cms移动端跳转当前页面

  1. <script type="text/javascript">
  2.         (function(){
  3.                 var ua = navigator.userAgent.toLowerCase();
  4.                 var bIsIpad = ua.match(/ipad/i) == "ipad";
  5.                 var bIsIphoneOs = ua.match(/iphone os/i) == "iphone os";
  6.                 var bIsAndroid = ua.match(/android/i) == "android";
  7.                 var bIsWM=ua.match(/windows mobile/i)=="windows mobile";
  8.                 var host = "<?=$public_r[‘add_zhann_murl’]?>";
  9.                 var pathname = window.location.pathname;
  10.                 if(bIsIpad||bIsIphoneOs||bIsAndroid||bIsWM){
  11.                         window.location.href =host + pathname;
  12.                 }
  13.         })();
  14. </script>

复制代码

温馨提示:本文最后更新于2022-09-12 11:37:06若文章内容或图片失效,请在下方留言或联系丁塔克
本站资源均为作者提供和网友推荐收集整理而来,仅供学习和研究使用,请在下载后24小时内删除,谢谢合作!
© 版权声明
THE END
点赞10 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

热门圈子总有聊不完的话题
星球求救信号帮助是一种美德