V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
hemasama
V2EX  ›  问与答

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

  •  
  •   hemasama · 2018-07-27 15:34:42 +08:00 · 719 次点击
    这是一个创建于 2105 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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
       2018-07-27 16:10:01 +08:00
    额 。。 知道怎么回事了。
    A 页面的 form 设置了 target,每次提交的话如果 target 设置的窗口名称存在,就会去那个窗口刷新数据。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   837 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:02 · PVG 04:02 · LAX 13:02 · JFK 16:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.