// 监测浏览器跳转PC if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){// 移动端 }else{// PC端 }