How to find the operating system version using JavaScript?

后端 未结 13 925
滥情空心
滥情空心 2020-11-22 04:32

How can I find the OS name and OS version using JavaScript?

13条回答
  •  醉话见心
    2020-11-22 05:29

    Use detectOS.js:

    var Detect = {
        init: function () {
            this.OS = this.searchString(this.dataOS);
        },
        searchString: function (data) {
            for (var i=0;i

提交回复
热议问题