js判断移动端与pc端

这里介绍使用device.js插件来判断移动端设备前端 地址:https://github.com/matthewhudson/device.jsandroid if(device.mobile()){ window.location.href="移动端地址"; //alert("移动端"); } else { window.location.href="PC端地址
相关文章
相关标签/搜索