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
posted on 2008-01-11 13:29
周锐 阅读(669)
评论(0) 编辑 收藏 所属分类:
HTML 、
JavaScript