function getMCookie(objName){var arrStr=document.cookie.split("; ");for(var i=0;i =0){console.log('域名中包含PC模板');url = url.replace("main", "m_main");console.log('将地址中的PC模板替换为手机模板,替换后域名为:',url);}else{console.log('域名中不包含PC模板');url = url.replace("www.laetart.com", "www.laetart.com/m_main");console.log('将地址中的PC版域名替换为域名+手机模板,替换后域名为:',url);}location.href=url;}}var pageurl=window.location.search;if(pageurl=='?m2w'){document.cookie="m2wcookie=" + escape("1");}if(getMCookie("m2wcookie")!="1") browserRedirect();
Baidu
map