js判断浏览器跳转到手机版页面
[js]
<script>
function uaredirect(murl){
try {
if(document.getElementById("bdmark") != null){
return;
}
var urlhash = window.location.hash;
if (!urlhash.match("fromapp")){
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
location.replace(murl);
}
}
} catch(err){}
}
</script>
[/js]
[js]
<script>uaredirect("http://www.9696e.com");</script>
[/js]...