andybest
V2EX  ›  问与答

Android 的 webview 中,如何在翻页返回后显示之前 ajax 载入的动态内容?

  •  
  •   andybest · Mar 27, 2014 · 4117 views
    This topic created in 4523 days ago, the information mentioned may be changed or developed.
    一个普通的论他页面,用 JS 做了拖动到最下方载入下一页的功能,在手机上调试,目前发现问题是点进某个帖子,再返回后,返回的总是第一页,即之前动态载入的第二页内容没了,Android 的 webview 如何解决这个问题?
    1 replies    1970-01-01 08:00:00 +08:00
    lhj2100
        1
    lhj2100  
       Mar 27, 2014
    晕!与服务器交互的时候传递参数就可以了呀!再加上history API你看行不!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   992 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 19:18 · PVG 03:18 · LAX 12:18 · JFK 15:18
    ♥ Do have faith in what you're doing.