Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 17:37:21
Original
1167 people have browsed it

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

复制代码 代码如下:























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

GO

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!