Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Tan90Qian 厉害了,我也才发现,原来: #195

Closed
jxccc1998 opened this issue Jan 29, 2021 · 0 comments
Closed

@Tan90Qian 厉害了,我也才发现,原来: #195

jxccc1998 opened this issue Jan 29, 2021 · 0 comments

Comments

@jxccc1998
Copy link

@Tan90Qian 厉害了,我也才发现,原来:

Object.prototype.toString.call(location)
// "[object Location]"
Object.prototype.toString.call(history)
// "[object History]"

而且他们跟自身相等是因为引用是相同的吧,就像:

var obj = {};
console.log(obj === obj) // true

Originally posted by @mqyqingfeng in #28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants