查看主屏幕上的 iPhone WebApp 的 HTML 代码

发布于 2024-09-13 06:29:09 字数 98 浏览 2 评论 0原文

有谁知道如何查看保存到 iPhone 主屏幕的 Web 应用程序的 HTML 代码?某些 Web 应用程序在“升级”到主屏幕时会重定向到不同的 html 文件。这就是我想检查的代码。

Does anyone know how to view the HTML code of a webapp that's saved to the iPhone home screen? Some webapps redirect to a different html file when they get "promoted" to the home screen. It's that code I'd like to examine.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

a√萤火虫的光℡ 2024-09-20 06:29:09

根据 Apple 文档,可以使用 JavaScript 检索正在查看 Web 应用程序的模式。所以,如果您 从您的计算机发送 iPhone 的 User-agent 标头,然后获取第一个提供的 HTML 文档的副本(在 JavaScript 有机会之前)进行任何重定向)您应该能够找到一些 JavaScript 代码来决定如何根据 iPhone 查看模式显示 Web 应用程序。

According to Apple's documentation, the mode in which a webapp is being viewed can be retrieved using JavaScript. So, if you send the iPhone's User-agent header from your computer and then grab a copy of the first HTML document that gets served up (before JavaScript has a chance to do any redirects) you should be able to find some JavaScript code that decides how to display the webapp based on the iPhone viewing mode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文