Posted on 2008-01-09 15:48
itspy 阅读(1532)
评论(0) 编辑 收藏
alert(location);
alert(location.href);
alert(location.search);
alert(location.pathname);
上面四个分别得到下面四个结果
http://www.baidu.com/s/abc/d?ie=gb2312&bs=baseURL&sr=&z=&cl=3&f=8&wd=baseURL+IE+FF&ct=0
http://www.baidu.com/s/abc/d?ie=gb2312&bs=baseURL&sr=&z=&cl=3&f=8&wd=baseURL+IE+FF&ct=0
?ie=gb2312&bs=baseURL&sr=&z=&cl=3&f=8&wd=baseURL+IE+FF&ct=0
/s/abc/d