WindowClient.navigate()
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 |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
navigate |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.