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