復制代碼 代碼如下:
string url = Request.Url.AbsoluteUri; //結果:
string host = Request.Url.Host; //結果:
string rawUrl = Request.RawUrl; //結果:/web/index.aspx
string localPath = Request.Url.LocalPath; //結果:/web/index.aspx
復制代碼 代碼如下:
var url = document.URL; //結果:
var href = document.location.href; //結果:
var host = location.hostname; //結果:
新聞熱點
疑難解答
圖片精選