简体   繁体   English

历史对象的原型链?

[英]Prototype chain of History object?

Which one is correct? 哪一个是正确的?

Chrome returns false Chrome返回false

Object.getPrototypeOf(Object.getPrototypeOf(history)) === Object.prototype
false

Fireforx return true Fireforx返回true

Object.getPrototypeOf(Object.getPrototypeOf(history)) === Object.prototype
true

Both. 都。

The specification doesn't precise the type of the object or how the browser creates it, but only an interface. 规范不精确对象的类型或浏览器如何创建它,而只是一个接口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM