Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么查看iOS iPhone的Safari版本userAgent_iso safari浏览器版本在哪里看-CSDN博客 #94

Open
HenryTSZ opened this issue Jan 26, 2024 · 0 comments

Comments

@HenryTSZ
Copy link
Owner

AI架构师易筋
于 2020-06-17 12:11:10 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

问题

在iOS中的Setting,找不到Safari的版本信息,如下图。

曲线救国的方案

方法1. 访问地址:https://spiderip.com/

可以看到这个网页的获取userAgent的代码如下:

 `var k=this;   {var ia=k.navigator;if(ia){var ja=ia.userAgent;if(ja){w=ja;break a}}w=""}` 

*   1


方法2. 可以写一个网页,包含以下信息,也可以查询userAgent的信息。

 `javascript:alert(this.navigator.userAgent)` 

*   1


参考

https://stackoverflow.com/questions/62320141/how-to-view-the-safari-version-in-setting-of-iphone-ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant