From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/performancenavigation/index.html | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/zh-cn/web/api/performancenavigation/index.html (limited to 'files/zh-cn/web/api/performancenavigation') diff --git a/files/zh-cn/web/api/performancenavigation/index.html b/files/zh-cn/web/api/performancenavigation/index.html new file mode 100644 index 0000000000..ccd6816faf --- /dev/null +++ b/files/zh-cn/web/api/performancenavigation/index.html @@ -0,0 +1,76 @@ +--- +title: PerformanceNavigation +slug: Web/API/PerformanceNavigation +translation_of: Web/API/PerformanceNavigation +--- +

{{APIRef("Navigation Timing")}}

+ +

Summary

+ +

PerformanceNavigation接口呈现了如何导航到当前文档的信息。

+ +

这个类型的对象可以被只读属性{{domxref("Performance.navigation")}}调用。

+ +

Properties

+ +

PerformanceNavigation 接口不继承任何属性。

+ +
+
{{domxref("PerformanceNavigation.type")}} {{readonlyInline}}
+
一个无符号短整型,表示是如何导航到这个页面的。可能的值如下: +
+
TYPE_NAVIGATE (0)
+
当前页面是通过点击链接,书签和表单提交,或者脚本操作,或者在url中直接输入地址,type值为0
+
TYPE_RELOAD (1)
+
点击刷新页面按钮或者通过{{domxref("Location.reload()")}}方法显示的页面,type值为1
+
The page was accessed by clicking the Reload button or via the {{domxref("Location.reload()")}} method.
+
TYPE_BACK_FORWARD (2)
+
页面通过历史记录和前进后退访问时。type值为2
+
TYPE_RESERVED (255)
+
任何其他方式,type值为255
+
+
+
{{domxref("PerformanceNavigation.redirectCount")}} {{readonlyInline}}
+
无符号短整型,表示在到达这个页面之前重定向了多少次。
+
+ +

Methods

+ +

Performance 接口没有继承任何方法

+ +
+
{{domxref("PerformanceNavigation.toJSON()")}} {{non-standard_inline}}
+
PerformanceNavigation转换成JSON对象
+
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Navigation Timing', '#sec-navigation-info-interface', 'PerformanceNavigation')}}{{Spec2('Navigation Timing')}}Initial definition.
+ +

Browser compatibility

+ +
+ + +

{{Compat("api.PerformanceNavigation")}}

+
+ +

See also

+ + -- cgit v1.2.3-54-g00ecf