0

导航某些页面并尝试使用window.history.back()返回后会出现问题,屏幕只是没有更新——最后一个加载的页面仍然可见——但日志中的 URL 确实得到了正确更新。

InitialPage => SecondPage => ThirdPage [此处出现window.history.back() ]

ThirdPage 的内容仍然可见,但使用WebViewClientonPageFinished方法记录的 URL 是正确的,即 SecondPage 的 URL 被记录。由于 ThirdPage 仍然显示,如果我执行另一个window.history.back() - 使用按钮 - ,它再次发生,ThirdPage 仍然在屏幕中,但这次 InitialPage 的 URL 被记录。

知道可能是什么问题吗?

4

1 回答 1

0

Never mind, in the end it must be some JavaScript on the loaded page blocking the proper functioning. I did a simple test with pages of my own and these pages work fine, but the third-party pages not.

于 2012-02-21T16:53:21.327 回答