JS判断服务端是win还是Linux,js 判断操作系统类型, win7,win10,麒麟都测试过
判断操作系统functiondetectOS(){varsUserAgent=navigator.userAgent;varisWin=(navigator.platform=="Win32")||(navigator.platform=="Windows");varisMac=(navigator.platform=="Mac68K")||(navigator.platform=="MacPPC