alert(parent.window.location.pathname);   /xxxx
  alert(parent.window.location.search);      获得参数 ?xxx=xxx
  alert(parent.window.location.href);    http://xxzz/

如果不是用frame,直接去掉parent就可以

相关文章:

  • 2021-09-20
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-02-25
相关资源
相似解决方案