iOS 5 中的 UIWebView goBack() 问题

发布于 2025-01-02 22:19:53 字数 258 浏览 3 评论 0原文

我正在显示 UIWebView 来显示移动网站。该网站使用ajax 和内部哈希导航。我有一个后退按钮可以返回历史记录。 它在 iOS 4 上以及应用程序启动后首次在 iOS 上运行良好。

离开 UIWebView 并返回后,后退按钮由于缓存而无法正常工作。 我们有什么想法可以让后台功能/历史记录在 iOS5 中保持正常工作吗?我们在网页上和本机上尝试了几种方法,但没有成功。

我们目前的状态是点击后退按钮会返回到UIWebView上的初始页面,但是会跳过中间页面。

I'm displaying a UIWebView to display a mobile website. The website uses ajax and internal hash navigation. I have a back button to go back in history.
It works fine on iOS 4 and on iOS for the first time after application launch.

After leaving the UIWebView and coming back to it, the back button does not work properly because of the caching.
Any ideas how we can get the back functionality/history keeping working in iOS5? We have tried several things on the web page, and natively, but no success.

Our current status is that clicking the back button will return to the initial page on the UIWebView, but jump over the intermediate pages.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文