/** * 是否为mac零碎(蕴含iphone手机) * */ var isMac = function() { return /macintosh|mac os x/i.test(navigator.userAgent); }();