Git Product home page Git Product logo

Comments (7)

fredshare avatar fredshare commented on June 15, 2024

可以增加苹果系列的区分,3、4、5、6可以通过屏幕高度window.screen.height辅助window.devicePixelRatio来判断。比如:

                var iosVersioin;
                if (detector.device.name == "iphone") {
                    var height = screen.height;
                    if (height == 480) {
                        iosVersioin = "4、4s"
                    } else {
                        if (height == 568) {
                            iosVersioin = "5、5s、5c"
                        } else {
                            if (height == 667) {
                                if(window.devicePixelRatio == 3){
                                    iosVersioin = '6 plus';
                                }else{
                                    iosVersioin = "6"
                                }

                            } else {
                                if (height == 736) {
                                    iosVersioin = "6 plus"
                                } else {
                                    iosVersioin = "unkown"
                                }
                            }
                        }
                    }
                }

from detector.

airyland avatar airyland commented on June 15, 2024

希望增加iPhone 4,5,6的检测

from detector.

hotoo avatar hotoo commented on June 15, 2024

什么用途?

from detector.

airyland avatar airyland commented on June 15, 2024

记录,用户反馈问题时可以知道是哪个型号的问题。日常error也可以快速找测试机来检查。

from detector.

hotoo avatar hotoo commented on June 15, 2024

一般跟硬件关系不大吧,主要看操作系统、浏览器及渲染引擎的软件。

from detector.

airyland avatar airyland commented on June 15, 2024

不是大家都需要这个,那我们就自己实现一下就好了。

from detector.

hotoo avatar hotoo commented on June 15, 2024

嗯。还没想清楚,detector 暂时还没有加入这个功能的计划。

from detector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.