//判断用户浏览器的类型console.log(window.navigator.userAgent);//判断浏览器所在的系统平台console.log(window.navigator.platform);