且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在ios 7中检测移动safari浏览器?

更新时间:2022-01-15 21:55:12

试试这个(也检测iPod touch):

Try this (to detect iPod touch as well):

navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)