document.location.href 返回完整的 URL。 如:http://www.cftea.com/foo.asp?p=1
引用
location.search是从当前URL的?号开始的字符串
如:http://www.51js.com/viewthread.php?tid=22720
它的search就是?tid=22720
document.location.href 返回完整的 URL。 如:http://www.cftea.com/foo.asp?p=1