- 时间:2021-03-29 16:20 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:使用JavaScript和C#中获得referer
[b]1. JavaScript[/b]
[url=http://localhost:1897/News/Press/Content.aspx/123?id=1#toc]http://localhost:1897/News/Press/Content.aspx/123?id=1#toc[/url]
[url=http://localhost:1897/News/Press/Content.aspx/123?id=1]http://localhost:1897/News/Press/Content.aspx/123?id=1[/url]
Request.Url.Scheme http
Request.Url.Host localhost
Request.Url.Port 1897
Request.Url.Authority localhost:1897
Request.Url.LocalPath /News/Press/Content.aspx/123
Request.PathInfo /123
Request.Url.PathAndQuery /News/Press/Content.aspx/123?id=1
Request.Url.Query ?id=1
Request.Url.Fragment
Request.Url.Segments /
News/
Press/
Content.aspx/
123
[b]4. JavaScript window.location对象[/b]
[url=http://www.1sucai.cn/article/57407.htm]http://www.1sucai.cn/article/57407.htm[/url]
怎么样,是不是已经学会了在javascript和C#中获取页面的referer了呢?如有什么疑问,也可以联系我