简体   繁体   中英

Does document inherit from window?

I was under this impression.

But I found out that

window.FormData 

exists while

document.FormData 

does not exist.

I would have expected the interpreter to look up the prototype chain, when it did not find FormData in document.

Does document inherit from window?

不, 文档窗口是两个完全不同的对象。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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