如何在ios 7中检测移动safari浏览器?
在ios7上检测移动游猎的官方方法是什么?
例如:
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)
试试这个
navigator.userAgent.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i)
/iP(ad|hone|od)/.test(navigator.userAgent)
提供简单的T / F.