1. 首页
  2. 数据库
  3. 其它
  4. 获取当前url

获取当前url

上传者: 2021-01-31 21:05:06上传 PDF文件 24.95KB 热度 33次
如: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
下载地址
用户评论