//是否手机端判断
var ua = navigator.userAgent;
var ipad = ua.match(/(iPad).*OSs([d_]+)/),
isIphone = !ipad && ua.match(/(iPhonesOS)s([d_]+)/),
isAndroid = ua.match(/(Android)s+([d.]+)/),
isMobile = isIphone || isAndroid;
//是否手机端判断
var ua = navigator.userAgent;
var ipad = ua.match(/(iPad).*OSs([d_]+)/),
isIphone = !ipad && ua.match(/(iPhonesOS)s([d_]+)/),
isAndroid = ua.match(/(Android)s+([d.]+)/),
isMobile = isIphone || isAndroid;