window.navigator.platform 直接在控制台中输入上面的一句话就可以得到你想要的 // Mac window.navigator.platform "MacIntel" 转载于:https://www.cnblogs.com/juliazhang/p/10114244.html