location与 URL属性为何显示不同呢?一个显示正斜杠,一个显示反斜杠? document.write(window.document.location.href);
document.write("<br>");
document.write(window.document.URL);
document.write("<br>");显示如下:
file:///D:/ctemp/tmp1.html
file://D:\ctemp\tmp1.html
为何斜杠的方向不一样呢?
document.write("<br>");
document.write(window.document.URL);
document.write("<br>");显示如下:
file:///D:/ctemp/tmp1.html
file://D:\ctemp\tmp1.html
为何斜杠的方向不一样呢?
如何解释呢?