首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

为什么小弟我的URL用document.URL显示出来的没有了querystring

2012-02-24 
为什么我的URL用document.URL显示出来的没有了querystring?这个是我做的一个链接:ahref n.html?name1v

为什么我的URL用document.URL显示出来的没有了querystring?
这个是我做的一个链接:
<a   href= "n.html?name1=value1&name2=value2&name3=value3 "> click   here </a>
跳转后地址栏显示的是:
file:///E:/js/n.html?name1=value1&name2=value2&name3=value3
可是我用document.write(document.URL);
显示的却是:
file://E:\js\n.html
后面那些字符串去什么地方了?谢谢。

[解决办法]
<script language=javascript>
document.write(document.location.href);
</script>
[解决办法]
document.write(document.URL + document.location.search);
[解决办法]
document.wrte(location);

热点排行