在ios7上检测移动Safari的官方方法是什么?
例如:
navigator.userAgent.match(/(iPod|iPhone|iPad)/)
&& navigator.userAgent.match(/AppleWebKit/)
&& navigator.userAgent.match(/OS 7/)
最佳答案
试试这个(也可以检测 iPod touch):
navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)
关于jquery - 如何在 ios 7 中检测移动 safari 浏览器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18944110/