This interface of this property is deprecated in the
Navigation Timing Level 2 specification
. Please use the
PerformanceNavigationTiming
interface instead.
传统
PerformanceNavigation
.type
read-only property returns an
unsigned short
containing a constant describing how the navigation to this page was done. Possible values are:
| 值 | Constant name | 含义 |
|---|---|---|
0
|
TYPE_NAVIGATE
|
The page was accessed by following a link, a bookmark, a form submission, a script, or typing the URL in the address bar. |
1
|
TYPE_RELOAD
|
The page was accessed by clicking the Reload button or via the
Location.reload()
方法。
|
2
|
TYPE_BACK_FORWARD
|
The page was accessed by navigating into the history. |
255
|
TYPE_RESERVED
|
Any other way. |
type = performanceNavigation.type;
| 规范 | 状态 | 注释 |
|---|---|---|
|
导航计时
The definition of 'PerformanceNavigation.type' in that specification. |
推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
type
弃用
|
Chrome Yes | Edge 12 |
Firefox
7
|
IE 9 | Opera No | Safari No | WebView Android Yes | Chrome Android Yes |
Firefox Android
7
|
Opera Android No | Safari iOS No | Samsung Internet Android Yes |
完整支持
不支持
弃用。不要用于新网站。
见实现注意事项。
PerformanceNavigation
interface it belongs to.
PerformanceNavigation
redirectCount
type