37对象7---location

来源:互联网 发布:java项目视频20套 编辑:程序博客网 时间:2024/05/21 05:20

Location对象
location用于获取或设置窗体的URL,并且可以用于解析URL。

语法:

location.[属性|方法]
location对象属性图示:

这里写图片描述

location 对象属性:
这里写图片描述

location 对象方法:

这里写图片描述


<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>location</title></head> <script type="text/javascript">    document.write(window.location);     </script><body></body></html>
原创粉丝点击