js中页面跳转几种方法

<script>
  function toLogin(){

  //第一种
    //self.location="/zhld/toTestLogin";

  //第二种
    top.location="/zhld/toTestLogin";

  //第三种
    //window.navigate="/zhld/toTestLogin";

  //第四种
    //window.location.href="/zhld/toTestLogin";
}
</script>

posted @ 2016-10-12 15:09  WKellyL  阅读(536)  评论(0)    收藏  举报