-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zh-CN]: add translation for
NavigationActivation.entry
(#25193)
- Loading branch information
1 parent
ef139c4
commit a5c0b5e
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: NavigationActivation:entry 属性 | ||
slug: Web/API/NavigationActivation/entry | ||
l10n: | ||
sourceCommit: 3a95c239db50c88fdde48daacb6c279006a422b9 | ||
--- | ||
|
||
{{APIRef("Navigation API")}}{{SeeCompatTable}} | ||
|
||
{{domxref("NavigationActivation")}} 接口的 **`entry`** 只读属性包含一个 {{domxref("NavigationHistoryEntry")}} 对象,该对象表示导航中传入(“目标”)的文档历史记录条目。这相当于传入文档被激活时的 {{domxref("Navigation.currentEntry")}} 属性。 | ||
|
||
在某些情况下,`from` 或 `entry` {{domxref("NavigationHistoryEntry")}} 对象不是 `traverseTo()` 方法的可行目标,因为它们可能不会保留在历史记录中。例如,可以使用 `location.replace()` 激活文档,或者可以使用 `history.replaceState()` 替换其初始条目。但是,这些条目的 `url` 属性和 `getState()` 方法仍然可以访问。 | ||
|
||
## 值 | ||
|
||
{{domxref("NavigationHistoryEntry")}} 对象。 | ||
|
||
## 示例 | ||
|
||
查看 {{domxref("NavigationActivation")}} 主页面。 | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 参见 | ||
|
||
- [导航 API](/zh-CN/docs/Web/API/Navigation_API) | ||
- [视图过渡 API](/zh-CN/docs/Web/API/View_Transition_API) |