<script type="text/javascript">
function browserRedirect() {
var sUserAgent = navigator.userAgent.toLowerCase();
if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/.test(sUserAgent)) {
//跳转移动端页面
window.location.href="${ctxMJiangxin}/";
} else {
//跳转pc端页面
window.location.href="${ctxJiangxin}/";
}
}
browserRedirect();
</script>
<script type="text/javascript">
try {
if ((navigator.userAgent.match(/(iphone|ipod|android|ios|windows phone)/i))) {
//跳转移动端页面
window.location.href="${ctxMJiangxin}/";
}else{
}
} catch (e) {
}
</script>
本文地址:https://blog.csdn.net/weixin_43968374/article/details/107174783
如对本文有疑问, 点击进行留言回复!!
荐 AJAX初识Day1——POST & GET请求
海创软件组--20200712--axios上传文件获取进度--js对多个四边形的点对象数组分别按顺时针排序--定义上传视频并可预览
网友评论