客户需求检测浏览器如果是PC端输入移动端浏览器就直接跳转到PC端..
function mediaInit(){
var scrwidth = parseInt(window.screen.width);
//console.log('scrwidth',scrwidth)
if(scrwidth>750){
var href=location.href
var newHref = href.replace('m','www')
location.href=newHref;
}
}
mediaInit()