这篇文章介绍了如何通过 JavaScript 检测 Safari 浏览器及其 iOS 版本,推荐使用特性检测和引擎映射的方法,而不是依赖容易伪造的 User-Agent 字符串。

https://evilmartians.com/chronicles/how-to-detect-safari-and-ios-versions-with-ease How to detect Safari and iOS versions with ease in 2026—Martian Chronicles, Evil Martians’ team blog