Simple way to identify iOS user agent in a jQuery if/then statement?

前端 未结 6 2044
心在旅途
心在旅途 2021-02-01 03:16

Exactly like it sounds..

Is there some magical and easy way to say:

    if (user agent is iOS) {
        if (browserRatio >=1.5) {
            $contai         


        
6条回答
  •  时光取名叫无心
    2021-02-01 03:36

    For web app version try this.

    if (
        ("standalone" in window.navigator) &&
        !window.navigator.standalone
        ){
    
        // .... code here ....
    }
    

提交回复
热议问题