V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hemasama
V2EX  ›  问与答

没有刷新页面而且没有发起请求, 为什么触发了另外一个标签页的响应?

  •  
  •   hemasama · Jul 27, 2018 · 1397 views
    This topic created in 2836 days ago, the information mentioned may be changed or developed.

    1.通过 http://wrd2016.library.sh.cn/channel/stjp/ 随便选择一个

    2.之后手动打开 http://eresource.library.sh.cn:8080/objserver/jsp/fy.jsp A 页面

    3.点击下一页弹出一个新页面 B,之后 A 页面的操作都会影响 B 页面

    没有刷新页面而且没有发起请求,这是怎么做到的? postMessage 的话也没看到相应的代码。我晕了

    hemasama
        1
    hemasama  
    OP
       Jul 27, 2018
    额 。。 知道怎么回事了。
    A 页面的 form 设置了 target,每次提交的话如果 target 设置的窗口名称存在,就会去那个窗口刷新数据。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1257 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 17:06 · PVG 01:06 · LAX 10:06 · JFK 13:06
    ♥ Do have faith in what you're doing.