javascript获取网址参数

 

通过以上图片,就可以很好的理解:

location.href

location.protocol

location.host

location.hostname

location.port

location.pathname

location.search

location.hash

 

是不是很简单  :) <完>

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2022-03-09
  • 2021-06-23
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2021-06-02
  • 2021-08-08
  • 2021-06-22
相关资源
相似解决方案