zoukankan      html  css  js  c++  java
  • jquery 打开页面window.location和window.open的区别

    window.location = "http://www.xxxxxxxx.net" 跳转后有后退功能 
    其实应该是 window.location.href
    window.location.replace("http://www.xxxxxxxx.net") 跳转后没有后退功能 

    window.open("http://www.xxxxxxxx.net") 要新的窗口打开链接 
    这个一般用于简单的弹出页面,现在基本上都被屏蔽掉了
    window.location.reload();
    window.location = "/Admin/UserList";
    window.open("/Admin/UserList");

    window.location.href = '/Admin/UserList'; 

    window.location.reload()刷新当前页面.

    parent.location.reload()刷新父亲对象(用于框架)

    opener.location.reload()刷新父窗口对象(用于单开窗口)

    top.location.reload()刷新最顶端对象(用于多开窗口)

    都是重定向 

  • 相关阅读:
    C语言学习第八章
    C语言学习第七章
    C语言学习第六章
    C语言学习第五章
    ssh的bug
    Oracel 用户管理
    初识Kettle
    IDEA使用MAVEN时自动创建骨架卡的设置
    2017/6/12 JSON
    DDL,DML,DQL
  • 原文地址:https://www.cnblogs.com/glj1203/p/2016897.html
Copyright © 2011-2022 走看看