这篇文章介绍了如何通过 JavaScript 检测 Safari 浏览器及其 iOS 版本,推荐使用特性检测和引擎映射的方法,而不是依赖容易伪造的 User-Agent 字符串。
https://evilmartians.com/chronicles/how-to-detect-safari-and-ios-versions-with-ease
https://evilmartians.com/chronicles/how-to-detect-safari-and-ios-versions-with-ease