Java字符串01-字符串反转输出
2021-04-02 22:26
标签:middle abc i++ 反转 rgs 单个字符 rev tar span Java字符串01-字符串反转输出 标签:middle abc i++ 反转 rgs 单个字符 rev tar span 原文地址:https://www.cnblogs.com/eosclover/p/13470084.html
var url = window.location.href; //获取当前窗口的Url; 结果:http://localhost:61768/Home/Index?id=2&age=18
var host = window.location.host; //获取当前窗口的主机名; 结果:localhost:61768
var port = window.location.port; //获取当前窗口的端口; 结果:61768
var pathname = window.location.pathname; //获取当前窗口的路径 ; 结果:/Home/Index
var URL = document.URL; //获取当前文档的Url;结果:http://localhost:61768/Home/Index?id=2&age=18
var search = window.location.search; //获取参数;结果:?id=2&age=18
var protocol = window.location.protocol; //获的是当前地址的协议 结果:http: