JS中的location属性

location属性通常引用自Location对象,能够用于获取或者设置当前的URL。web window.location === document.location; //true 均引用自Location对象; URL的通常组成包括:浏览器 eg: protocol://[user[:password]@]hostname:[port][/path][?query][#fragment]
相关文章
相关标签/搜索