Home  >  Article  >  Web Front-end  >  location对象的属性和方法应用(解析URL)_javascript技巧

location对象的属性和方法应用(解析URL)_javascript技巧

WBOY
WBOYOriginal
2016-05-16 17:37:211112browse

location对象提供了很多属性和方法用来解析URL。

复制代码 代码如下:























测试search的时候,需要从另一个页面点击一个连接,从浏览器地址栏穿过来值:

GO

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn