// if the modile device, redict to the modile page
var userAgentInfo = navigator.userAgent.toLowerCase();
var murl = "${pageContext.request.contextPath}/NewFile.html" ;
if ((userAgentInfo.match(/(iphone|ipod|android|ipad)/i))) {
location.replace(murl);
return ;
}
标签:murl,contextPath,代码,JS,访问,modile,var,userAgentInfo
From: https://blog.51cto.com/u_16034393/6152974