前端如何识别操作系统 window.navigator.platform 直接在控制台中输入上面的一句话就可以得到你想要的 // Mac window.navigator.platform "MacIntel" 每天一点点