location 属性:可以获取location对象。 (1)Location 对象包含有关当前 URL 的信息。 (2)Location 对象是 Window 对象的一个部分,可通过 window.location 属性来访问。