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

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

Should both of them reference the same object?

16条回答
  •  太阳男子
    2020-11-22 13:25

    window.location is read/write on all compliant browsers.

    document.location is read-only in Internet Explorer (at least), but read/write in Gecko-based browsers (Firefox, SeaMonkey).

提交回复
热议问题