if (!/windows phone|iphone|android/ig.test(window.navigator.userAgent)) { //pc }else{ //h5 } 转载于:https://www.cnblogs.com/panyujun/p/10469605.html