if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { //说明是移动端 } else { //说明是pc端 }
转载于:https://www.cnblogs.com/zonglonglong/p/11161127.html
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) { //说明是移动端 } else { //说明是pc端 }
转载于:https://www.cnblogs.com/zonglonglong/p/11161127.html