if (!/windows phone|iphone|android/ig.test(window.navigator.userAgent)) { //pc }else{ //h5 }
js判断pc还是移动端
原文:https://www.cnblogs.com/panyujun/p/10469605.html