WindowClient.navigate()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2018.
WindowClient
接口的 navigate()
方法加载特定的 URL 地址到一个被控制的浏览器页面,并返回一个当前 WindowClient
议的 Promise
对象。
语法
WindowClient.navigate(url).then(function(WindowClient) { // do something with your WindowClient after navigation });
参数
url
-
跳转地址
返回值
一个 WindowClient
决议的Promise
对象。
Specifications
Specification |
---|
Service Workers # client-navigate |
浏览器兼容性
BCD tables only load in the browser