//获取正在使用应用程序浏览器的标识信息 getBrowserIdentity = function () { return navigator.appName + " "+navigator.appVersion; } var name = getBrowserIdentity(); console.log(name); //Netscape 5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36