Geo*_*kos 13 jquery mobile-safari ios7
在ios7上检测移动游猎的官方方法是什么?
例如:
navigator.userAgent.match(/(iPod|iPhone|iPad)/)
&& navigator.userAgent.match(/AppleWebKit/)
&& navigator.userAgent.match(/OS 7/)
Run Code Online (Sandbox Code Playgroud)
Ehs*_*oli 23
试试这个(也检测iPod touch):
navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)
Run Code Online (Sandbox Code Playgroud)
小智 4
尝试这个
navigator.userAgent.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i)
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
13870 次 |
最近记录: |