Window.location
window Location
2023-09-11 14:14:18 时间
Window.location
The Window.location
read-only property returns a Location
object with information about the current location of the document.
Though Window.location
is a read-only Location
object, you can also assign a DOMString
to it. This means that you can work with location
as if it were a string in most cases: location = 'http://www.example.com'
is a synonym of location.href = 'http://www.example.com'
.
See Location
for all available properties.
Location: href
The href
property of the Location
interface is a stringifier that returns a USVString
containing the whole URL, and allows the href to be updated.
Setting the value of href
navigates to the provided URL. If you want rediredtion, use Location.replace()
.
相关文章
- php nginx window系统 gettext方式实现UTF-8国际化多语言(i18n)
- Spark-Streaming之window滑动窗口应用
- window.showModalDialog基础
- location的hash部分和使用window.onhashchange实现ajax请求内容时使用浏览器后退和前进功能
- window.location.href 没有刷新页面
- [VSCode] Visually Organize Applications in VS Code with Window Color-Coding
- bug_ _ android.view.WindowManager$BadTokenException: Unable to add window -- token
- 浅谈iOS的多Window处理
- Flink(23):Flink之Window案例二(基于数量的滚动和滑动窗口)
- Flink(22):Flink之Window案例一(基于时间的滚动和滑动窗口)
- window.location.href的使用方法
- window for little vGL
- Window权限维持(五):屏幕保护程序