<script type="text/javascript">
function isPC() {
const u = navigator.userAgent.toLowerCase()
const isPC = !/Android|iPhone|SymbianOS|Windows\s+Phone|iPad|iPod|XiaoMi\/MiuiBrowser/i.test(u)
return isPC
}
!isPC() && (location.href = '//m.csroad.cn')
</script>
最精简的一代js跳转代码,根据访问者的浏览器类型 ,自动跳转到相应的页面或网页