如:http://localhost/newurl/WebForm1.aspx 1.方法document.URL(注意大小写) 结果是:http://localhost/newurl/WebForm1.aspx 2.HttpContext.Current.Request.Url.ToString(), 结果:http://localhost/newurl/WebForm1.aspx 3.HttpContext.Current.Request.Url.PathAndQuery; 结果:/newurl/WebForm1.aspx 备注: 如果当前URL为 http://localhost/sear