js 稍微判断下浏览器 pc 还是手机
function isMobile() {
var a=navigator.userAgent;
var ref=/.*(Android|iPhone|SymbianOS|iPad|iPod|Windows Phone).*/;
return ref.test(a);
}
var ref=/.*(Android|iPhone|SymbianOS|iPad|iPod|Windows Phone).*/;
return ref.test(a);
}