代码 :
try { var urlhash = window.location.hash; if (!urlhash.match("fromapp")){ if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))){ var url = window.location.href; // var replace_url = url.replace('192.168.22.15:888', 'mip.keoaeic.org'); var replace_url = url.replace('www.keoaeic.org', 'mip.keoaeic.org'); window.location = replace_url; } } }catch(err){}