What's the difference between [removed] and [removed] in JavaScript?

后端 未结 16 2211
故里飘歌
故里飘歌 2020-11-22 12:37

Should both of them reference the same object?

16条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 13:26

    document.location === window.location returns true

    also

    document.location.constructor === window.location.constructor is true

    Note: Just tested on , Firefox 3.6, Opera 10 and IE6

提交回复
热议问题