美文网首页
判断pc端移动端不同设备跳转不同页面

判断pc端移动端不同设备跳转不同页面

作者: 小猪仔仔子 | 来源:发表于2018-05-18 17:42 被阅读23次

    window.location.href = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent) ? "https://www.baidu.com/" : "http://news.baidu.com/";

    相关文章

      网友评论

          本文标题:判断pc端移动端不同设备跳转不同页面

          本文链接:https://www.haomeiwen.com/subject/qttndftx.html