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

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

Should both of them reference the same object?

16条回答
  •  遇见更好的自我
    2020-11-22 13:34

    At least in IE, it has a little difference on local file:

    document.URL will return "file://C:\projects\abc\a.html"

    but window.location.href will return "file:///C:/projects/abc/a.html"

    One is back slash, one is forward slash.

提交回复
热议问题